in reply to Re: Regular Expression: search two times for the same number of any signs
in thread Regular Expression: search two times for the same number of any signs

Hi Hauke,

Took me a while to understand your code !! I can learn a lot out of it. Thanks !!!

But one question: I never saw // before. What is // ?

You use "extract($_)//'invalid'" to print 'invalid' if the sub returns nothing.

Can I do more with // ?

  • Comment on Re^2: Regular Expression: search two times for the same number of any signs

Replies are listed 'Best First'.
Re^3: Regular Expression: search two times for the same number of any signs
by hippo (Archbishop) on Nov 29, 2016 at 12:01 UTC

    It's the defined-or operator. See perlop for full details.