I am parsing some HTML and I would like to only get the input, select and textarea tags. The rest should be ignored. With this I could working on these specifics HTML tag.
SearchString contains my HTML.
Here is the RE which is not working:
<cfloop condition="TRUE">
<cfset Count=Count+1>
<cfset st=ReFindNoCase("<[^>]((input|textarea|select|option)\b).*?>",SearchString,StartPos,"TRUE")>
<cfset StartPos = st.pos[1] + st.len[1]>
<cfif StartPos neq 0>
<cfset temp = ArrayAppend(stScript.pos, st.pos[1])>
<cfset temp = ArrayAppend(stScript.len, st.len[1])>
<cfset temp = ArrayAppend(stScript.tag, Mid(SearchString,st.pos[1],st.len[1]))>
</cfif>
<cfif StartPos gte len(SearchString) OR StartPos eq 0>
<cfbreak>
</cfif>
</cfloop>
Any idea?
Thanks,
Jean-marc
Jean-Marc Bottin
Ingenieur de developpement
01 53 23 35 35
[EMAIL PROTECTED]
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

