mc_hammer
10-23-2008, 09:20 AM
hey there
I'm quite unexperienced with regular expression. I worked out one which does what I want, but just out of curiosity, could it be shorter/better? Here we go:
[a-zA-Z0-9][^.][a-zA-Z0-9.]*
In words, allow all chars and numbers, including point. But the point must not appear on first position.
I see here some redundancy ;)
sl3dg3
I'm quite unexperienced with regular expression. I worked out one which does what I want, but just out of curiosity, could it be shorter/better? Here we go:
[a-zA-Z0-9][^.][a-zA-Z0-9.]*
In words, allow all chars and numbers, including point. But the point must not appear on first position.
I see here some redundancy ;)
sl3dg3