For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > July 2007 > split string into two parts









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author split string into two parts
John

2007-07-21, 3:59 am

Hi

I hate regex and have never been able to get my head around it.

my $x="LLLLLNNNNN";
my $z="LLNNNNN";
where L is A-Z and N is 0-9

I need to extract the letters and numbers

should be something like $x ~= m /\d/
what comes next?

Regards
John


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com