A Coworker of mine is trying to learn a little more about regex and asked me for some help when he was working on an exercise on a training site and it looks like the exercise is broken to me and wanted to get another set of eyes to take a look and make sure im not just missing something.
Here is the data set:
task text capture result
capture text 1280x720 1280, 720 ✗
capture text 1920x1600 1920, 1600 ✗
capture text 1024x768 1024, 768 ✗
Here is the regex he was trying to use as the solution:
The exercise leads me to believe that there is an issue with the subgroup setup but it looks right as either part of that regex will match the half he wanted.
Obviously I'm not a regex expert and use it very rarely but this looks like it should work.
Update: Almost 100 views and 0 replies. Does this regex really stump everybody out there? :P