in reply to Re^2: 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

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. :-)


🦛

  • Comment on Re^3: I match a pattern in regex, yet I don't get the group I wanted to extract for some reason