Avatar
Kishikawa Katsumi 8/2/2022 12:25 PM
/<(?P<tag>[A-Z][A-Z0-9]*)\b[^>]*>.*?<\/(?P=tag)>/
12:25 PM
/<([A-Z][A-Z0-9]*)\b[^>]*>.*?<\/\1>/
12:26 PM
"<" Capture { Regex { ("A"..."Z") ZeroOrMore { CharacterClass( ("A"..."Z"), ("0"..."9") ) } } } Anchor.wordBoundary ZeroOrMore(.anyOf(">").inverted) ">" ZeroOrMore(.reluctant, .any) "</" /* TOOD: backreferences */ ">" }
12:27 PM
/(?(?=regex)then|else)/
12:27 PM
^ コンパイルエラー
12:27 PM
/<([A-Z][A-Z0-9]*)\b[^>]*>.*?<\/\2>/
12:28 PM
^ コンパイルエラー Cannot parse regular expression: no capture numbered 2 (edited)
12:28 PM
/<(?P<tag>[A-Z][A-Z0-9]*)\b[^>]*>.*?<\/(?P=tab)>/ ^ コンパイルエラー Cannot parse regular expression: no capture named 'tab' (edited)
12:31 PM
-enable-bare-slash-regex