$_ = <<END; recordID: blah fieldname: value foo : bar : baz END for (split /\n\s*/) { ($left, $right) = split /\s*:\s*/; #do stuff... printf "%10s:\t\'%s\'\n", $left, $right; }
In reply to Re: Regex problem with .+ matching newlines without /s
by sleepingsquirrel
in thread Regex problem with .+ matching newlines without /s
by Solo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |