Page 1 of 1

Replace AlphaNumeric.anything

Posted: Thu Dec 31, 2009 9:54 pm
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

Posted: Thu Dec 31, 2009 10:37 pm
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

Posted: Fri Jan 01, 2010 5:07 am
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.