Re: Alternative lookaheads in substitution, is it possible? (SOLVED!!!)

2007-01-20 Thread Michael Alipio
Cool I got this from approximately 71% perldoc perlre: print 5: got $1\n if $x =~ /^(\D*)(?=\d)(?!123)/; so I don't need || between multiple look ahead assertions... Sometimes, it's more rewarding to solve you're problem on your own. You just have to RTFM.. :-) More power to this

Re: Alternative lookaheads in substitution, is it possible? (SOLVED!!!)

2007-01-20 Thread Mumia W.
On 01/20/2007 06:46 AM, Michael Alipio wrote: Cool I got this from approximately 71% perldoc perlre: print 5: got $1\n if $x =~ /^(\D*)(?=\d)(?!123)/; so I don't need || between multiple look ahead assertions... Sometimes, it's more rewarding to solve you're problem on your own. You

Re: Alternative lookaheads in substitution, is it possible? (SOLVED!!!)

2007-01-20 Thread I . B .
one more to remove spaces selectively: $string =~ s/(\s+)(?:(?!date=|time=)(?=\w+=))/*/g; cheers, ~i On 1/20/07, Mumia W. [EMAIL PROTECTED] wrote: On 01/20/2007 06:46 AM, Michael Alipio wrote: Cool I got this from approximately 71% perldoc perlre: print 5: got $1\n if $x =~