If you are trying to find the content of the font tag (CFMX only):

stTmp = ReFindNoCase("<font color=red>(.*?)</font>",test,1,true);
if(stTmp.pos[1]){
  value = Mid(test,stTmp.pos[1],stTmp.Len[1]);
}

If you are not on MX and there is ONLY one font tag, use (.*).

If you can have nested font tags, it will require more work.

Pascal

> -----Original Message-----
> From: CFDEV [mailto:[EMAIL PROTECTED]
> Sent: woensdag 16 juni 2004 5:10
> To: CF-Talk
> Subject: RE: find function
>
> Look when I do this :
>  
> <cfoutput>
>  
>
> <cfsavecontent variable="test">
>  <table class="app" id="highlightable"width="355" border="0"
> cellspacing="0"
> cellpadding="3">
>                 
>                 <tr>
>                   <td colspan="5" valign="top"><strong>View
> Our Rates by Phone Number</strong>
>                     
>                     <strong><font color=red>:
> 0.054(US$/min)</font></strong>
>                     
>                     </td>
>                 </tr>
>                 
> </cfsavecontent>
> <cfset debut = #REFindNoCase("<font color=""red"">.*</font>",
> test)#> #REFindNoCase("<font color=""red"">.*</font>",
> test)#<br> #mid(test,evaluate(debut+18),150)#asd
> </cfoutput>
>  
> It returns this :
>  
> 0
> app" id="highlightable"width="355" border="0" cellspacing="0"
> cellpadding="3">
>  
> Patrick
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to