Tengo este regex que construí y probé en regex buddy.¿Qué es un "Cuantificador anidado" y por qué está causando que mi expresión regular falle?
"_ [ 0-9]{10}+ {1}+[ 0-9]{10}+ {2}+[ 0-9]{6}+ {2}[ 0-9]{2}"
Cuando utilizo esto en C# .Net
recibo excepción
"parsing \"_ [ 0-9]{10}+ +[ 0-9]{10}+ +[ 0-9]{6}+ [ 0-9]{2}\" - Nested quantifier +."
¿Qué significa este error? Aparentemente .net no le gusta la expresión.
Aquí es el compañero de expresiones regulares, así que puedes entender mi intención con la expresión regular ...
_ [ 0-9]{10}+ {1}+[ 0-9]{10}+ {2}+[ 0-9]{6}+ {2}[ 0-9]{2}
Match the characters "_ " literally «_ »
Match a single character present in the list below «[ 0-9]{10}+»
Exactly 10 times «{10}+»
The character " " « »
A character in the range between "0" and "9" «0-9»
Match the character " " literally « {1}+»
Exactly 1 times «{1}+»
Match a single character present in the list below «[ 0-9]{10}+»
Exactly 10 times «{10}+»
The character " " « »
A character in the range between "0" and "9" «0-9»
Match the character " " literally « {2}+»
Exactly 2 times «{2}+»
Match a single character present in the list below «[ 0-9]{6}+»
Exactly 6 times «{6}+»
The character " " « »
A character in the range between "0" and "9" «0-9»
Match the character " " literally « {2}»
Exactly 2 times «{2}»
Match a single character present in the list below «[ 0-9]{2}»
Exactly 2 times «{2}»
The character " " « »
A character in the range between "0" and "9" «0-9»
En resumen ...
¿Qué es un cuantificador anidada?
En ciertos sabores de expresiones regulares {min, max} + es un cuantificador posesivo, pero .Net no los admite. Si está utilizando Regex buddy, puede decirle con qué sabor de expresión regular está trabajando haciendo clic derecho en el panel de composición y seleccionando su "Sabor" en la lista desplegable. – Grokodile