in reply to Perl regular expression

The expression
'https://domain.com/account/confirm_email/JodiImus40/589HC-CG26G-13357 +8 Once you confirm, you will have full access and all future n= otifi +cations will be sent to this email address.' =~ s/\K Once.*//r
returns the front part.

This is a trivial question. I suggest you learn the language properly first on your own: http://learn.perl.org/

Replies are listed 'Best First'.
Re^2: Perl regular expression
by Anonymous Monk on Apr 30, 2012 at 11:59 UTC

    This is a trivial question. I suggest you learn the language properly first on your own: http://learn.perl.org/

    Trivial? You use two modern regex features not mentioned in the faq or introductory text, and certainly not mentioned on learn.perl.org