Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Mnemonic for begin/end chars in regexes - roof and money

by Discipulus (Canon)
on May 12, 2023 at 11:11 UTC ( [id://11152120] : note . print w/replies, xml ) Need Help??


in reply to Mnemonic for begin/end chars in regexes

Bonjour Smonff,

I always used a masonry analogy: you first start building the roof ^ and only at the end you get paid $

Now that I see it it can be semplified as: for any work you do money come as last

L*

There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.

Replies are listed 'Best First'.
Re^2: Mnemonic for begin/end chars in regexes - roof and money
by Smonff (Scribe) on May 12, 2023 at 11:22 UTC

    It was exactly what I was searching for! Thank you so much, this is very helpful.

    🌸
Re^2: Mnemonic for begin/end chars in regexes - roof and money
by Happy-the-monk (Canon) on May 14, 2023 at 08:32 UTC

    start building the roof ^ and only at the end you get paid $

    That's great and ^ certainly is the roof, while $ to me looks like a fishing hook, down in the murky waters :-)

    Edited to add: ...the fishing hook of course marks the end of the line, fishing line, yes.

    Cheers, Sören

    Créateur des bugs mobiles - let loose once, run everywhere.
    (hooked on the Perl Programming language)