Greetings,
I have a field that a user must enter that must be in a specific
format. For example:
F8_A000001F0123
The pertinent parts are F8, A, 000001, F, 0123, while the underscore is
a separator.
I have come up with the following regular expression to match this
pattern.
$reverse =~ /^[a-zA-Z0-9]+_A|a[0-9](F|R)[0-9](1-4)$/
I am unsure if I need to group the relevant parts using (). Could
anyone advise or is the use of the anchor sufficient?
Thanks in advance,
Kevin
--
Kevin Viel
Department of Genetics [EMAIL PROTECTED]
Southwest Foundation for Biomedical Research phone: (210)258-9884
P.O. Box 760549 fax: (210)258-9444
San Antonio, TX 78245-0549
Kevin Viel
PhD Candidate
Department of Epidemiology
Rollins School of Public Health
Emory University
Atlanta, GA 30322
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>