hi again thanks to all i think this one from jenda is almost perfect: $str =~ s/.*?(aaa)/$1\n/g; $str =~ s/(aaa)?.*?$/$1/; ----variation------ $str =~ s/.*?(a+)/$1\n/g; $str =~ s/(a+)?.*?$/$1/; thanks for all the suggestions! allan _______________________________________________ ActivePerl mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/listinfo/activeperl
- Re: simple global substitution Andy Jennings
- RE: simple global substitution Snyder, Christopher
- Re: simple global substitution Andy Jennings
- RE: simple global substitution Lee Goddard
- Re: simple global substitution Jenda Krynicky
- RE: simple global substitution Allan Juul
- RE: simple global substitution dayne_medlyn
- RE: simple global substitution Arthur Cohen
- RE: simple global substitution dayne_medlyn