I need perform a regular expression find and replace, many times in a large html file.
The first string to find is the following:
(?-i)(<p class=.+\r\n.+)([\d]{2}/[\d]{2}/[\d]{4})(((.+\r\n)+?)(.+>))(MIR)
The second string to find is the next occurrence of:
"Times New Roman"'>MIR
My objective is to insert the date group ([\d]{2}/[\d]{2}/[\d]{4}) into the second string, just before the "MIR"
My attempts to do this were unsuccessful.
The search string I came up with was this:
(?-i)())(MIR)((.+\r\n)+?)((.+)?>)(MIR)
The replacement string I came up with was this:
\1\2\3\7\8\10\2< br />\12
It does not work.
I need to do many such find and replace actions in the html file.
Any help you could give me would be much appreciated.
Marc
\d
inside[]
unless you're adding something else to the character class that you may want matched.(?-i)
.