while ("abc\ndef\nghi" =~ /^(.)/mg) { print("$1\n"); # a,d,g }
In reply to Re: Regex question - either starts, or has newline prefixing?
by ikegami
in thread Regex question - either starts, or has newline prefixing?
by ultranerds
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |