I am a bit stuck using regex, in a line of text there is an image path, such as:
hello images/image.jpg this is an image
What I am trying to do is to add the HTML img tag to the path, so that it looks like
hello <img src="images/image.jpg" /> this is an image
Any ideas please?
The following will match any chunk of text that ends with
.jpgand wrap it in an<img>tag: