vendredi 15 décembre 2017

Regex - Capturing a group based on a pattern

I'm trying to extract match patterns like:

AA/8G+8G+8G+8G/WITHOUT *

AA/8*G+8*G+8*G+8*G/WITH *

AA/8G+8*G+8*G+8*G/MIXED, THIS IS NOT SUPPORTED YET

using the following regular expression:

http://ift.tt/2Be61l5

but it matches only 8G+8G+8G+

because the pattern is identified as 8G**+**

Is there any way to include the last 8G (without +) in the group?

Aucun commentaire:

Enregistrer un commentaire