in reply to Re: String Match
in thread String Match
if($line =~ m/API#[^#]/) { ...
The negative character class makes the regex reject the doubled-#, as per OP's question.
Update: Better answer below at Re^3: String Match. ++ happy.barney!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: String Match
by happy.barney (Friar) on Nov 30, 2009 at 13:19 UTC |