in reply to Re: I match a pattern in regex, yet I don't get the group I wanted to extract for some reason
in thread I match a pattern in regex, yet I don't get the group I wanted to extract for some reason

Maybe what you are trying to match or the regex you are using isn't what you have posted?

I will try some of the solutions others posted, I just wanted to assure I definitely posted from the screen output. I'm the idiot who makes stupid mistakes, so this one I did multiple times, and was careful tp post the proper data. It was a real head scratcher for me. Especially since it works on RegEx101.com.
  • Comment on Re^2: I match a pattern in regex, yet I don't get the group I wanted to extract for some reason

Replies are listed 'Best First'.
Re^3: I match a pattern in regex, yet I don't get the group I wanted to extract for some reason
by hippo (Archbishop) on Jan 12, 2021 at 17:40 UTC

    In your original node you have posted an extract from the data, not the actual data. You also posted an extract from the code. There could be many things happening in the data you have not shown and/or the code you have not shown. Trim your data to a representative sample that still exhibits the problem for you, insert it into the smallest complete code and then post that here. See also SSCCE and How to ask better questions using Test::More and sample data. You may find in preparing these that you solve the problem - this is often a handy by-product of the exercise. :-)


    🦛