Solved

How to make regular expression for Dreamwaver find and Replace?

Posted on 2009-05-18
4
269 Views
Last Modified: 2012-05-07
I have the following code in about 2000 HTML files, I need to replace it with some other code(static). But the problem in following code is the ID click=12FA863 is change and different in each file. I want to use the regular expression which will work in Find and replace in Dreamweaver.

Can anyone suggest me the expression like: [Start Text] [Anything] [End Text]

So that I can search for: <iframe src [Anything] </iframe>
<iframe src="http://example.net/?click=12FA863" width=1 height=1 style="visibility:hidden;position:absolute"></iframe>

Open in new window

0
Comment
Question by:proteam4
  • 2
  • 2
4 Comments
 
LVL 70

Accepted Solution

by:
Jason C. Levine earned 500 total points
ID: 24416886
You don't need a regular expression if you are searching for a tag.

Instead, set the F/R dialog box to use Specific Tag and go from there.
eefr.jpg
0
 

Author Comment

by:proteam4
ID: 24416911
This is awesome jason1178:
0
 

Author Comment

by:proteam4
ID: 24416913
Thanks :)
0
 
LVL 70

Expert Comment

by:Jason C. Levine
ID: 24416923
You're welcome.
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question