Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

Re^2: Grouped characters inside character class.

by the_0ne (Pilgrim)
on Jun 02, 2006 at 03:54 UTC ( #553213=note: print w/replies, xml ) Need Help??

in reply to Re: Grouped characters inside character class.
in thread Grouped characters inside character class.

Your code lacks a sigil on $source, and doesn't really do anything because it's evaluated in void context.

Sorry, I actually am coding this in Ruby. However, when I have a problem in other languages, I usually jump right to a perl -e ' code_block;', especially regexes. And whenever i have any kind of a problem that the perlmonks can help me out in, I go right here first...


Yes, it does do what I want. I just get leary when using .*. I've seen monks chastised a few times on perlmonks for that. But in this case, it should be fine. I was just wondering if there was another way.

  • Comment on Re^2: Grouped characters inside character class.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://553213]
[SuicideJunkie]: Helps that the top level directories are people's names ;) But the nested rectangles make it easy to spot wasted space when it is lots of small stuff or a few big things.

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (7)
As of 2017-09-20 17:04 GMT
Find Nodes?
    Voting Booth?
    During the recent solar eclipse, I:

    Results (237 votes). Check out past polls.