in reply to Re: Extracting multiple match and reorganizing order with Regex
in thread Extracting multiple match and reorganizing order with Regex

Sweet, works perfectly!! What does the code below mean:

q{}

Is that q for quoting? If so what does the {} do? Thanks for everyones help!

Replies are listed 'Best First'.
Re^3: Extracting multiple match and reorganizing order with Regex
by stevieb (Canon) on Apr 19, 2016 at 16:13 UTC

    q{}, as mentioned in perlop, is a single-quoted string, in this case an empty one. It's the same as saying $_ ne '', and similar to $_ !~ /^$/.