View previous topic :: View next topic |
Author |
Message |
sepa
Joined: 06 May 2007 Posts: 13
|
Posted: Sat Nov 03, 2007 1:49 pm Post subject: Parser rules regexp question |
|
|
Hi.
I'm download last ec_editu from site. Then go to LexerProperties for PHP lexer -> Parser -> "String" rule
There is
As you can see (.)* don't act as needed =( Test any string:
I've try
but it's far more simple, i cant think up right regexp for PHP strings without using of parentesis. |
|
Back to top |
|
|
econtrol Site Admin
Joined: 09 Jun 2006 Posts: 202
|
Posted: Mon Nov 05, 2007 12:34 pm Post subject: |
|
|
Hello,
Yes, your expression
Code: | (?s)(["']).*?[^\\]\1 |
is better.
Michael. |
|
Back to top |
|
|
|