in reply to Re: Re: Re: Newbie reg.exp question!
in thread Newbie reg.exp question!

Help again,
My script just evolved. Now I need to support an extend string that looks like this:

C[CCNNNNNNNNNNN] C= Char N= Number
The former solution looked like this:

@list = $line =~ m{ ( [A-Z]{2}\d{11} ) }gx;
How can I support the special characters in the string? I tried like this, but it didn't return anything:

@list = $line =~ m{ ( [A-Z]{1}\[[A-Z]{2}\]\d{11} ) }gx;
Could someone please help and explain me how to do it correctly so that I don't have to ask next time?


Thanks,
Rune