SitePoint Sponsor |
|
User Tag List
Results 1 to 3 of 3
Thread: Dreamweaver Regex question
-
Jul 8, 2007, 09:40 #1
- Join Date
- Jun 2007
- Location
- The Netherlands
- Posts
- 112
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Dreamweaver Regex question
Hi all,
I'm in the process of re-coding a script to work without register_globals.
I want to use the search and replace function from Dreamweaver to speed things up.
Now, I have the following regex search pattern which works pretty well:
Code:\$[A-Za-z0-9]+
Is there any trick to use the found string again in the replace pattern?
Thanks.Servyces.com
Where it’s all about you.
Your partner in online solutions.
Visit our website at http://www.servyces.com/
-
Jul 8, 2007, 09:57 #2
- Join Date
- May 2006
- Posts
- 90
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
This should work:
Search Regex:
Code:\$([A-Za-z0-9]+)
Code:$_POST['$1']
-
Jul 8, 2007, 10:02 #3
- Join Date
- Jun 2007
- Location
- The Netherlands
- Posts
- 112
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Ah, that works. Forgot the parenthesis's. Thanks.
Last edited by Servyces; Jul 8, 2007 at 18:20.
Servyces.com
Where it’s all about you.
Your partner in online solutions.
Visit our website at http://www.servyces.com/
Bookmarks