Replace AlphaNumeric.anything

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
hankster
Posts: 15
Joined: Thu May 20, 2004 2:34 pm

Replace AlphaNumeric.anything

Post by hankster »

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 »

Find what: [a-z0-9]\.
Replace with: [nothing]

[X] Regular expression

Replace All
To restrict the replacements to occurrences at the beginnings of lines:
Find what: ^[a-z0-9]\.
Replace with: [nothing]

[X] Regular expression

Replace All
User avatar
Bob Hansen
Posts: 1516
Joined: Sun Mar 02, 2003 8:15 pm
Location: Salem, NH
Contact:

Post by Bob Hansen »

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
Post Reply