the ^ matches the start of the stringif ( $word =~ /^([a-zA-Z]+)/ ) { $word = $1; }
if ( $word =~ /^([^:]+)/ ) { $word = $1; }
In reply to Re: matching in a line
by fireartist
in thread matching in a line
by splitOnce
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |