Metacharacters | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Metacharacters

"(4{5,6})\1" why it is matched to 10 to 12 fours and not 5 to 6 fours?

27th Jul 2017, 8:10 AM
Abeer
1 Answer
0
(4{5,6}) matches 5 fours or 6 fours. if the group value is 5 fours then \1 value is equally 5 fours = 10 fours. if the group value is 6 fours then \1 value is equally 6 fours = 12 fours.
28th Jul 2017, 9:49 PM
Eric Prunier
Eric Prunier - avatar