Hello Taco Fleur !

  
On Thu, 23 Jan 2003 11:04:42 +1000 GMT your local time,
which was 23.01.2003, 02:04 (GMT+0100) where I live, you (Taco Fleur)
wrote in 002001c2c27b$6a09d370$0100000a@taco:">mid:002001c2c27b$6a09d370$0100000a@taco:


> I need a regEx to strip ALL html Tags, or rather convert them like so:

> <script> = &lt;script&gt;
> Which is not really a problem to do, but I need to allow certain HTML
> tags like for example:
> <b></b>
> <h1></h1> | <h1 ></h1 > (with space allowed but no other tag within the
> tag, i.e. <h1 class="x">)

> I can't seem to get my head around the reEx for this, I thought that 
> <[^b\s?>] would stop it from editing the <b> tag....... But not...

I'm not sure which program language you want to use. It is not very
difficult if you use Perl for example.

Nevertheless, your examples were matched with the following regex:

<[bh\d\s/]*>

HTH

-- 
Best regards,
 Gerd 
=======================================================
Tutorial for using regular expressions with TheBat! www.regenechsen.de
-------------------------------------------------------
Nicht alles was bunt und gro� daherkommt ist automatisch der richtige
Partner  (unbekannt)
-------------------------------------------------------
now playing: WDR2 :-)


________________________________________________________
 Current version is 1.61 | "Using TBTECH" information:
http://www.silverstones.com/thebat/TBUDLInfo.html

Reply via email to