$ perl -le'$string = "hello my * name is Rob * and * I am a very nice +person * at least * I think * so"; print $string; ( $left, $right ) = + $string =~ / ^ ( .{1,30} \* ) \s* ( .+ ) /x; print for $left, $right +' hello my * name is Rob * and * I am a very nice person * at least * I +think * so hello my * name is Rob * and * I am a very nice person * at least * I think * so
In reply to Re: split string at variable position with matching
by jwkrahn
in thread split string at variable position with matching
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |