in reply to Mnemonic for begin/end chars in regexes
Perl regexes allow variable interpolation and a final $ is taken as a meta for end-of-line
Otherwise, what would /$var/ be supposed to match?
Cheers Rolf
(addicted to the 𐍀𐌴𐍂𐌻 Programming Language :)
Wikisyntax for the Monastery
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Mnemonic for begin/end chars in regexes
by Smonff (Monk) on May 12, 2023 at 14:13 UTC | |
by LanX (Saint) on May 12, 2023 at 15:32 UTC |