Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Re^2: REGEX problem with anchors

by live4tech (Sexton)
on Feb 05, 2013 at 07:10 UTC ( #1017075=note: print w/replies, xml ) Need Help??

in reply to Re: REGEX problem with anchors
in thread REGEX problem with anchors

Thanks for this, it lead to the answer!

The one-liner worked for me as well and so I went back to my code (which I should have posted) and realized I forgot to chomp the input strings (the user was prompted to enter input strings and a regex). I chomped the regex, not the input strings. A novice mistake, I apologize!

Replies are listed 'Best First'.
Re^3: REGEX problem with anchors
by tobias_hofer (Friar) on Feb 05, 2013 at 08:34 UTC

    In case you are using Eclipse withe epic plugin as IDE for development you can check your regular expression with the RegExp View. Also, in case you got leading whitespaces or a linebrake at the end of your string - you can easily see in debug mode in the variables view. For me always a great help.




Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1017075]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (2)
As of 2023-03-25 04:08 GMT
Find Nodes?
    Voting Booth?
    Which type of climate do you prefer to live in?

    Results (62 votes). Check out past polls.