in reply to Regex :: Line Traversal

Try /\$string/

$ Match the end of the line (or before newline at the end)

perldoc perlre

HTH

Sweetblood