print "$1 $2\n" if($str=~/(.*?)\*(.*)/);
Note that both of them produce:print "$1 $2\n" if($str=~/(.*?)\*(.*?)$/);
Elimination of that . left as an exercise. ;-)Test .Value
In reply to Re: regex question
by broomduster
in thread regex question
by Alien
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |