Advertisement
snarfblat

Untitled

Sep 9th, 2014
577
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!--- given that your code containing the IMG tag is called "code" --->
  2.  
  3. <cfset startpos = FindNoCase("src", code)>
  4. <cfset endpos = FindNoCase(chr(34), code, startpos)>
  5. <cfset aTag = Left(code, startpos)>
  6. <cfset imgTag = Mid(code, startpos, endpos)>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement