to named capture and it worked nice.
Some directives support, but digital captures can be implicitly
overwritten.
With named captures you can control explicitly.
Yep. When using values across lines, I noticed overwriting.
One last question:
I think using “P” in named capture e.g. “?P” is old style. But
even on nginx 1.2 also some people get error: “pcre_compile() failed:
unrecognized character after”. It goes away when they update PCRE lib.
For better compatibility, is it good idea to use “P” or is there any
advantage without “P”?
No advantage, just readability.
? Perl 5.10 compatible syntax, supported since PCRE-7.0
?‘name’ Perl 5.10 compatible syntax, supported since PCRE-7.0
?P Python compatible syntax, supported since PCRE-4.0
BTW PCRE-7.0 has been released on 19 December 2006, almost 6 years ago.
Yep. When using values across lines, I noticed overwriting.
One last question:
I think using “P” in named capture e.g. “?P” is old style. But
even on nginx 1.2 also some people get error: “pcre_compile() failed:
unrecognized character after”. It goes away when they update PCRE lib.
For better compatibility, is it good idea to use “P” or is there any
advantage without “P”?
Posted at Nginx Forum:
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.