Hoping this would be an easy one for regex experts out there.
I have a text file that looks like this:
blah blah blah
[Image "pasted.bmp-20160720140433"]
blah blah
[Image "pasted.bmp-20160720140458"]
blah blah
[Image "download"]
blah blah
blah blah [Image "download3"] [Image "download5"] blah blah
I wish to replace the [Image "pasted.bmp-20160720140433"] with base64 embedded images. The image placements always start with "[Image " and always end with "]" the enclosing bracket.
Is there an easy regex replace that can do the job?
edit:
Ultimately I would like the string to be html compliant like this:
blah blah blah
<img src='data:image/png;base64,data_which_I_get_from_using_the_file_name' />
blah blah blah
Thank you very much.
.*is a culprit. Thanks.