Another REGEX question, Replace portion
I have created a RegEx that I use for replacing dates in specific locations. I need to replace the date in two locations in the file, one in the metadata, another at the foot of the page. The search works perfectly as intended.
((<meta name="dcterms.modified" title="W3CDTF" content=")|(<time property="dateModified">))[\s]*[\d\-]{10}[\s]*("|</time>)
However I'm unsure how to use the replace portion which would be
$12022-03-07$4
Entered as above, the result is literally $12022-03-07[proper value of $4].
How do I get it to insert value $1 and 2022 with no break?
Once again, it's probably basic, but it's driving me nuts.
