Posts: 331
Threads: 60
Joined: May 2006
I so dont get findrx I'v been working on this to long so i guess ill ask for help :oops:
i need to pull THISWORD out of this bit of text.
center">THISWORD</h4></td></tr></table><br><script type="text/javascript"><!--
Posts: 11,935
Threads: 138
Joined: Dec 2002
Don't know what function or how to use?,
or cannot create working regular expression?
What code tried?
Posts: 331
Threads: 60
Joined: May 2006
I can not get a working regular expression, I'v also lost alot of the code i was working on when my hard drive crashed on me :roll:.
Here is what I do have though.
str a s2
;;This is part of some html code I just put it in a string to make it easier.
a="center''>THISWORD</h4></td></tr></table><br><script type=''text/javascript''><!--"
if(findrx(a "" 0 0 s2 1)<0) ret
Posts: 11,935
Threads: 138
Joined: Dec 2002
The regular expression depends on what characters contains THISWORD. This rx works with almost whatever.
Macro
str a s2
;;This is part of some html code I just put it in a string to make it easier.
a="center''>THISWORD</h4></td></tr></table><br><script type=''text/javascript''><!--"
str rx="center''>(.+?)</h4></td></tr></table><br><script type=''text/javascript''><!--"
if(findrx(a rx 0 0 s2 1)<0) ret
out s2