Hi list...

I am essentially a newbie with writing Regular Expressions.I have this one that 
I wrote:
/(g|1|2|3)(E|W)\d{3}-?\d{0,2}/i

And it would be good for
GE101 or GE101-22.

How can I make it so that it only matches if there are 5 total characters or 7 
or 8 characters only?

What I'm trying to make sure of is that GE101- or GE101-2 doesn't match.

Thanks!
- Michael M.




_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to