I have been trying to figure out how to RexEx replace two different things. First off, I would like to strip a tag of all occurances of 1 - 2 numbers, back to back, that may or may not have a period in front of them. For example:
1 (replace)
.1 (replace)
11 (replace)
.11 (replace)
111 (don't replace)
.111 (don't replace)
I am also trying to figure out how to replace all occurances of non alpha-numeric characters EXCEPT for underscores.
Any insight? Regular Expressions piss me off.