in reply to Re: How can I extract part of a string after a specific character
in thread How can I extract part of a string after a specific character
will do fine.
But not the same. Their versions grab everything after the last =, your version grabs evertyhing after the first one.
I think your solution is better (and I'm sure it's a lot more efficient), but we can't know for sure without more information.
$\ = "\n"; for ('title=foo' ,'title=foo=bar') { print "-> $_"; print /.*=(.*)/; print /=(.*)/; }
- Yes, I reinvent wheels.
- Spam: Visit eurotraQ.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: How can I extract part of a string after a specific character
by Abigail-II (Bishop) on Jul 11, 2002 at 10:56 UTC |
In Section
Seekers of Perl Wisdom