In Express I can't figure out how to Replace with what used to be called 'Found 1', 'Found 2', 'Found 3' etc when I've searched using more than one wild card in a string.
Just using 'Found' to leave various letters or digits unchanged in Replace doesn't work.
Here is an example:
I want to find all instances where a hypen is used with a space either side of it, between numbers and letters as in:
9am - 3pm
I want to change the hyphens to the HTML code for an en dash: –
So I've input:
Find what: [[:alpha:][:digit:]] - [[:alpha:][:digit:]]
Replace with: \0–\0
This yields a correct find, e.g. m - 3
But it replaces that with: m - 3–m - 3
Instead of: m–3
(I hope this makes sense!)
Wild Card use in Express
Re: Wild Card use in Express
Does this set of PowerFind Pro find/replace expressions work the way you want?:
Find:
([[:alpha:][:digit:]])( - )([[:alpha:][:digit:]])
Replace:
\1–\3
Find:
([[:alpha:][:digit:]])( - )([[:alpha:][:digit:]])
Replace:
\1–\3
Re: Wild Card use in Express
Yes, Hamid: that works perfectly. Many thanks!