I would....
1. find the position of the next occurence of "<a " using findnocase()
with a start pos of the pos you're interested in.
2. find the pos of the next occurence of "</a>" using findnocase()
with same start pos as above.

If #2 LT #1, your start pos is in a link.  No regex required.
Furthermore, I couldn't think of a regex that would be foolproof
anyway.

CF and regex is not great at NOT finding words.

On 12/7/06, Russ <[EMAIL PROTECTED]> wrote:
> I'm trying to write a regex and can't seem to figure it out.  Is there an
> easy way to tell if a given position in a string is inside a certain tag?
> For example, I want to know if a word at position x in my string is inside
> an A tag.   I want a regular expression that goes something like this:
>
>
>
> ReFindNoCase("[^<A]+?</A>",string,position)
>
>
>
> If there is a match, then I know that there was a closing </A> before an
> opening one.  I just can't seem to figure out the syntax.
>
>
>
> Russ
>
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:263287
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to