View Single Post
 
Old 02-19-2017, 03:34 AM
slaycock slaycock is offline Windows 7 64bit Office 2013
Expert
 
Join Date: Sep 2013
Posts: 255
slaycock is on a distinguished road
Default

My Apologies there is a typo in the first replace text (That's happening a lot at the moment as I have a new keyboard)

\1^p\1

should read
\1^p\2

which I did get right further down the page. My old eyes missed the space between the ] and [

The revised search would be

([\]])(*)([\[])

Personally I find the search text quite hard to scan, particularly on my hi res monitor where the search and replace dialog box is tiny.

So on reflection an easier to read version would have been

([^091])(*)([^093])

where 091 and 093 are the decimal ascii codes for [ and ].

You can get more information on find and replace using wildcards by clicking the ? on the find and replace dialog box and first looking under

Search by using wildcards

and then

Find and replace text by using regular expressions (Advanced)
Reply With Quote