while (<DATA>) { s/\\n/\n/g; print "Matched: $1\n" if /DIP\s+\S+\s+(\S+).*?\n/; } [download]
In reply to Re^4: Regex: Ignore \n in \S by ikegami in thread Regex: Ignore \n in \S by manav_gupta