Posted by Jason Turner on September 18, 1998 at 12:29:33:
In Reply to: Re: Perl string manipulation posted by Jason Nugent on September 18, 1998 at 09:30:53:
: : $pish =~ s/| (\w+)|$/$1/;
: : $pish =~ s/\|\w+\|\+-+\+\| (\w+?)\|$/$1/;
: : I get the exact same string in the variable. Any other ideas?
Bob, how many more do you want ?
I gave you 10 that all worked.
: Really? This the code I used to test it: Try this:
: $string = '|password|+----------+|rangers|';
Jase, dunno what browser you're using, but on mine the orig string had a space after "rangers" :)
I think that's why it's not working for Bob.
BTW, I'd steared clear of the \w match coz there are so many chars used in passwords that it wouldn't hit.
My expressions were generic "split on some delimeter" solutions.