in reply to Regex help/ Lua parse
withif ($line =~ m/^\s*terminal\s=\s"([^"]+)"\s*$/) { $line =~ s/$1/$change/; }
$line =~ s/^(\s*terminal\s=\s")([^"]+)("\s*)$/$1$change$3/;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Regex help/ Lua parse
by marquezc329 (Scribe) on Oct 26, 2012 at 20:53 UTC |