[Israel.pm] Reg Ex

Gaal Yahas gaal at forum2.org
Sun Mar 8 12:52:17 PDT 2009


(Oops, missed "+" after the last "]".)

On Sun, Mar 8, 2009 at 9:51 PM, Gaal Yahas <gaal at forum2.org> wrote:
> $text =~ /(\w+) \. (\d+) \. (\d+) \. (\d+) \. ([:alpha:]+) \. ([:alpha:])/x
>
> On Sun, Mar 8, 2009 at 9:37 PM, Georges EL OJAIMI
> <G-OJAIMI at cyberia.net.lb> wrote:
>> Hello,
>>
>> I am trying to have a regular expression pattern to detect the following:
>> alpha numeric . numeric . numeric . numeric . alphabetic . alphabetic
>>
>> i.e. Q4.3.1.2.TWW.FG
>>
>> Is there a way to get it in one pattern or I have to split the dot and do it
>> each alone?
>> If so, can you please provide it.
>>
>> Best regards,
>> Georges
>> _______________________________________________
>> Perl mailing list
>> Perl at perl.org.il
>> http://perl.org.il/mailman/listinfo/perl
>>
>
>
>
> --
> Gaal Yahas <gaal at forum2.org>
> http://gaal.livejournal.com/
>



-- 
Gaal Yahas <gaal at forum2.org>
http://gaal.livejournal.com/



More information about the Perl mailing list