General questions about using TextPad
Moderators: AmigoJack , bbadmin , helios , Bob Hansen , MudGuard
hankster
Posts: 15 Joined: Thu May 20, 2004 2:34 pm
Post
by hankster » Thu Dec 31, 2009 9:54 pm
Looking for a RegEx that will replace an alphanumber., with nothing. For example, I have a document that has:
1. as;fjsa;f
A. a;fs;afa
b. a;fasfsafw
And I'd like to remove either occurance of the number/letter and the dot, with nothing. I've tried various incantations, but am having no luck.
Thanks!
Hank
ben_josephs
Posts: 2461 Joined: Sun Mar 02, 2003 9:22 pm
Post
by ben_josephs » Thu Dec 31, 2009 10:37 pm
Fi nd what: [a-z0-9]\.
Rep lace with: [nothing]
[X ] Regular e xpression
Replace A ll
To restrict the replacements to occurrences at the beginnings of lines:
Fi nd what: ^[a-z0-9]\.
Rep lace with: [nothing]
[X ] Regular e xpression
Replace A ll
Bob Hansen
Posts: 1516 Joined: Sun Mar 02, 2003 8:15 pm
Location: Salem, NH
Contact:
Post
by Bob Hansen » Fri Jan 01, 2010 5:07 am
Do you need to redefine your needs?
You did not mention it, but I suspect you also want to remove the space character after the period. If so, just add a space character after the period in benjosephs solution.
Hope this was helpful.............good luck,
Bob