I am currently using a regex pattern to detect posted image links in CKeditor. However, I am facing an issue with identifying certain types of image links like:
<a href="#">myimage.png</a>
My goal is to create a regex pattern that can identify png<...
(along with following characters). Initially, I attempted to use a dot for this purpose, but it does not seem to be the correct approach:
/(https?:\/\/\S+\.(?:jpg|png|gif|jpg<.|png<.|gif<.))\s+/
I understand that this might be a basic question, but unfortunately, I haven't been able to find the right solution yet. Thank you for your assistance!