Maxime
2009-07-07 14:34:03 UTC
Hello,
Is it possible (and how i can do it) to use regex for replacement ?
An example with php: in order to become "php 5.3 guidelines", i've to replace:
session_register('my_var')
by:
$_SESSION('my_var')
Of course i'm a lazy guy and i'd like to replace all session_register(*) by $_SESSION(*) into my project with one click.
I found with this [^_]session_register\((.)*\)
but replacement seems to not use regular expression :(
Any idea how i can to that ?
Thanks for your help.
Is it possible (and how i can do it) to use regex for replacement ?
An example with php: in order to become "php 5.3 guidelines", i've to replace:
session_register('my_var')
by:
$_SESSION('my_var')
Of course i'm a lazy guy and i'd like to replace all session_register(*) by $_SESSION(*) into my project with one click.
I found with this [^_]session_register\((.)*\)
but replacement seems to not use regular expression :(
Any idea how i can to that ?
Thanks for your help.