Find and replace
Posted: Tue Dec 16, 2003 11:26 am
Hi, I am trying to use the regular expression to do a fidn and replace, I want to chage:
[1] McGilvary, Half Century, 1912.
to:
[<a name="1">1</a>] McGilvary, Half Century, 1912.
ie. find:
[ NUM ]
replace:
[ <a name="NUM"> NUM </a> ]
(NUM called be 1 - 2 digits)
I read the help file, and came up with something that looked like,
[:digit:]
But I couldn't even get the find to work.
Thanks for any help.
[1] McGilvary, Half Century, 1912.
to:
[<a name="1">1</a>] McGilvary, Half Century, 1912.
ie. find:
[ NUM ]
replace:
[ <a name="NUM"> NUM </a> ]
(NUM called be 1 - 2 digits)
I read the help file, and came up with something that looked like,
[:digit:]
But I couldn't even get the find to work.
Thanks for any help.