I have used RegExp before but am far from an expert...
I'm reading up right now for a project, but am running into an issue. I'm using rubular.com to build my regex, and their documentation describes the following:
(...) Capture everything enclosed
(a|b) a or b
How can I use an OR expression without capturing what's in it? So if I want to match "a or b followed by a c", and only capture the c, I can't use
(a|b)(c)
right? Then I capture both the "a or b" as well as the "c". I know I can filter through the captured results, but that seems like more work...
Am I missing something obvious? I'm using this in Java, if that is pertinent.
Thank you for your help!