in reply to Re: Capturing regex from map
in thread Capturing regex from map
Someone asked me, what is the best way to do x, I reach for the handy regex mapper, but I'm not sure it is the best. In sum: lack of confidence and the competitive drive for perfection. AND to a smaller degree, I want more xp. Why did you wonder why I wondered? This might go on all day, maybe I'll level up! :)my ($match_1,$match_2) = ($string =~ /(.*):(.*)/) // And in my own scripts I'm using constructs like my ($wanted_service) = (map { /^online.*svc:(.*?):/ } `svcs`)[15];
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Capturing regex from map
by BrowserUk (Patriarch) on Sep 13, 2013 at 17:34 UTC | |
by LanX (Saint) on Sep 13, 2013 at 17:45 UTC | |
by BrowserUk (Patriarch) on Sep 13, 2013 at 17:56 UTC | |
by LanX (Saint) on Sep 13, 2013 at 18:04 UTC |