Hi,

 

I am trying to create a single regular expression that will match texts like
ABC123 or ABC12-12. I have this (^[a-z]{1,3}[0-9]{1,3}$) which works with
the first text but I don't know yet how to handle the second text with a
dash in it. 

 

Thanks,

 

Noli

 

_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
http://lists.linux.org.ph/mailman/listinfo/plug
Searchable Archives: http://archives.free.net.ph

Reply via email to