How to match a pattern to the end of a line |
|
Hi,
Can you be a bit more specific? Which part you want to change and to what? |
||||||||||||
|
Guru master
|
PhpED uses PCRE (Perl Compatible) regular expression syntax. Try searching for var\w* and that will search for var followed by word characters with repetition. It should then stop at the next space, =, bracket, etc.
To match to a specific end character such as the ; (so you don't include comments) then use var.*; and to match to end of line (including any comments) you can just use var.* and the greedy repitition will go to the end of the line. I would probably be inclined to use a variable prefix if possible, such as \$var\w* so that I didn't find things that contain var, such as var_dump(). |
||||||||||||
|
How to match a pattern to the end of a line |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by