I have a string that could be formatted in the following ways:
user-style-1 user-style-1-bold user-style-1-italic user-style-1-bold-italic I'm attempting to capture (respectively):
nothing (does not match) -bold -italic -bold and -italic (as separate captures) This is my RegEx: ^user-style-\d+((-.+?)+?)$ (also potentially ^user-style-\d+(?:(-.+?)+?)$ since I don't care about the full capture, only the individual pieces of it). It captures:
nothing -bold -italic -bold-italic and -italic or (for the alternate)
nothing -bold -italic -italic I can't quite figure out how to get the repeating capture group to capture all individual instances rather than the entire thing and just the last instance or just the last instance.