dryabov / phpregexp

Support of regular expressions parsing in PhpStorm
MIT License
4 stars 2 forks source link

Unsupported RCPE features #7

Open Vovan-VE opened 9 years ago

Vovan-VE commented 9 years ago

Illegal/unsupported escape sequense:

  • \g... family: \gn, \g{N}, \g{-N}, \g<N>, \g<-N>, \g'N', \g'-N', \g<name>, \g'name', \g{name}
  • \k{name}
  • \N, \R, \K, \C

This named group reference is not supported

  • \k<name>, \k'name'
  • (?P=name)

Unclosed options group

  • (?N), (?+N), (?-N), where N is a group number (absolute or relative)
  • (?P>name), (?&name) - same error message
  • (?|...) - same error message

Conditional references are not supported

  • (?(cond)yes|no)
cburschka-pwc commented 7 years ago

This also includes the /x modifier (which ignores whitespace and inline comments in the pattern), leading to a) false-positive errors in comments and b) marking \\# as a redundant escape, even though it is required when including a literal # in an extended pattern.

juliangut commented 4 years ago

I'm facing the problem with backreferences

image

Is this issue of any priority?