Skip navigation
Currently Being Moderated

Quick Regexp Help

Sep 29, 2008 6:52 AM

Hi,

Wondering if someone can help me.


I'd like to replace the following code

<body bgcolor="#FFFFFF">
some text<br>
<br>

with this

<body bgcolor="#FFFFFF">
<h1>some text</h1>

on many files.


Can I do this with regular expressions? Is this the best way?


Eg. Search for

<body bgcolor="#FFFFFF">
(\w+)<br>
<br>

Replace with

<body bgcolor="#FFFFFF">
<h1>(\w+)</h1>
 
Replies

More Like This

  • Retrieving data ...

Bookmarked By (0)