Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help with findrx
#1
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"><!--
#2
Don't know what function or how to use?,
or cannot create working regular expression?
What code tried?
#3
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.

Code:
Copy      Help
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
#4
The regular expression depends on what characters contains THISWORD. This rx works with almost whatever.
Macro
Code:
Copy      Help
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


Forum Jump:


Users browsing this thread: 1 Guest(s)