ZS13.5: search/replace with regex

General discussion on Zend Studio
Post Reply
mark4278
Posts: 38
Joined: Wed Mar 11, 2015 3:24 pm

ZS13.5: search/replace with regex

Post by mark4278 » 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 1851 times

mark4278
Posts: 38
Joined: Wed Mar 11, 2015 3:24 pm

Re: ZS13.5: search/replace with regex

Post by mark4278 » Thu Sep 22, 2016 2:57 pm

anyone?

jaso9146
Posts: 29
Joined: Mon Jan 12, 2015 8:58 pm

Re: ZS13.5: search/replace with regex

Post by jaso9146 » 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?

Post Reply