ZS13.5: search/replace with regex

General discussion on Zend Studio

ZS13.5: search/replace with regex

Postby mark4278 on Thu Jul 21, 2016 5:21 pm

search with regex for
Code: Select all
\$_SESSION\[.*["']gutscheinaktion["'].*\]


and try to replace it with
Code: Select all
$_SESSION['gutscheinaktion']


you will get a "illegal group reference" error, not matter whether the "Regular expression" checkox is checked or not.

see attachment.

we are using Build ID: 13.5.1.v20160530-20160705-1334-642
Attachments
illegal-group-reference.png
illegal-group-reference.png (27.23 KiB) Viewed 1247 times
mark4278
 
Posts: 37
Joined: Wed Mar 11, 2015 3:24 pm

Re: ZS13.5: search/replace with regex

Postby mark4278 on Thu Sep 22, 2016 2:57 pm

anyone?
mark4278
 
Posts: 37
Joined: Wed Mar 11, 2015 3:24 pm

Re: ZS13.5: search/replace with regex

Postby jaso9146 on Thu Sep 22, 2016 7:32 pm

It does not appear that your replacement value is a regular expression. Did you try deselecting the Regular expression checkbox in the replace window?
jaso9146
 
Posts: 29
Joined: Mon Jan 12, 2015 8:58 pm


Return to Zend Studio

Who is online

Users browsing this forum: No registered users and 3 guests