Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re: Regular expression query

by Samy_rio (Vicar)
on Jul 30, 2007 at 06:43 UTC ( #629491=note: print w/replies, xml ) Need Help??

in reply to Regular expression query

Hi isha, I am not clear with your question. The problem may be in variable name $t1, which should be $t and inside character class range should be [A-Z], since you are using underscore seprately in the character class.

if($t1 !~ /A_[A_Z0-9_]+/i) it should be if($t !~ /A_[A-Z0-9_]+/i) Output: ------- $CD = 'A_TAG_HSSL_LBA_1'; #matches $CD = 'A_TAG_HSSL_LBAB_1'; #not matches

Also look into this How do I post a question effectively?

Velusamy R.

eval"print uc\"\\c$_\""for split'','j)@,/6%@0%2,`e@3!-9v2)/@|6%,53!-9@2~j';

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://629491]
Discipulus desease the question..
[shmem]: Discipulus: war/peace is a question of fuel gauge position...
[Discipulus]: yes i saw your cell brother..
[Discipulus]: but now fuel is cheap and they still make some war.
[Discipulus]: capitalism is able to go to war by cycle, even.
[shmem]: some? are you jokin' ?

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2017-04-29 21:57 GMT
Find Nodes?
    Voting Booth?
    I'm a fool:

    Results (534 votes). Check out past polls.