DZ- reg exp is greedy by default, but perl has a modifier to stop that.
where .* is greedy, .*? is not so given: josh made this regexp example to show how josh can use a modifier and stop it from going past josh and: (.*)josh modify to (.*?)josh and now you get nothing. josh is at the beginning. the first one should capture most of it. haven't tested to prove that works correctly, but in theory it should. ? immediately after * or + will make it non-greedy -Josh _______________________________________________ ActivePerl mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
