-2

I am trying to identify where images are within my html text. My goal is to convert references to image files to inline images.

I am using this pattern src=.*fileID=6509[<\"] which does the job. However, the * is too greedy and takes too much text. For instance, if I have another image between the src=. and fileId, then that will be taken out as well. The solution I think is to limit size to 100 characters or remove other html elements. How do I achieve this?

0 Answers0