Here, I am looking for the regular expression pattern:
"((way )?too sexy)"
In this pattern, the substring, "way ", is an optional, captured group and will, in fact, not be matched in our test string, "You are just too sexy!". In this scenario, we can then see how the different browsers pass in the second captured (but not matched) group.
I tested this in Firefox, Chrome, IE, and Safari and here is what we get:
Want to use code from this post? Check out the license.
Ahh, bug! Thanks for the link. I'll be checking out your regex know-how :)