You could find the whole string including the html tags then pull out
the substring between the tags using Mid.

ie, if you wanted to strip the <b></b> tags from the beginning and end
of a string just go Mid(myString, 4, (Len(myString)-4))

I think that would work but there is probably a more elegant solution.

On Wed, 25 Aug 2004 12:38:23 +1000, Tim Rox <[EMAIL PROTECTED]> wrote:
> Hi there,
> 
> Was just using cfstudio to run a global find and replace on some code.
> 
> I realised that i often find myself wondering if i can use regular
> expressions in the following way:
> 
> I want to find all instances of the word "jack" that are instantly followed
> by an uppercase letter. eg. jackMAGGS or jackJILL.
> 
> BUT here the perplexing bit: i don't actually want to return anything but
> the word "jack" in the matches. (this is cos i actually want to replace
> "jack" with "steve" in these cases - ie so it becomes steveMAGGS or
> steveJILL).
> 
> The dilemma would apply if say, i wanted to find all the content that was
> between <a> tags in my code, but i didn't want to return the <a></a> tags as
> a part of the matches.
> 
> I'm sure there's an easy answer. Perhaps i should have gone to the sydney
> CFUG last week? humble me.
> 
> Tim.
> 
> ---
> You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
> To unsubscribe send a blank email to [EMAIL PROTECTED]
> Aussie Macromedia Developers: http://lists.daemon.com.au/
>

---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to