Files
openide/python/testData/regexp/countedQuantifier.py
Bas Leijdekkers ce078dac32 RegExp: new "Regular expression can be simplified" inspection (IDEA-286122)
Supersedes the "Asterisk closure can be collapsed to plus closure" inspection which was only available in PhpStorm

GitOrigin-RevId: a63c6fce88b3700cc521e8b113069a4b2b50a3e4
2022-01-13 20:26:25 +00:00

9 lines
524 B
Python

import re
re.compile(r'a{<error descr="Repetition value too large">4294967295</error>}')
re.compile(r'a{4294967294}')
re.compile(r'a{<error descr="Repetition value too large">4294967295</error>,1}')
re.compile(r'a{1,<error descr="Repetition value too large">4294967295</error>}')
re.compile(r'a{<error descr="Illegal repetition range (min > max)">2,1</error>}')
re.compile(r'a{1,2}<error descr="Nested quantifier in regexp">+</error>')
re.compile(r'a<weak_warning descr="'{,}' can be simplified to '*'">{,}</weak_warning>')