Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
findrx help
#1
sorry to ask a regex question again, but :oops:

Code:
Copy      Help
<span class=ueberschrift1>Thank you. File uploaded</span><br>
        To download or share the file with others use this link: <a href='?pg=file&c1=2317193590&c2=MPnXtb8n'><font size=2>http://www.filecoast.com/?pg=file&c1=2317193590&c2=MPnXtb8n</font></a></b><br>
        <br>
        To delete the file visit this link:<br><br><input name='url' type='text' size='80' value='http://www.filecoast.com/?pg=delete&delcode=wn7cMCs3fu&file=ScvA5h' readonly='true'>

what would be the patterns to get:

http://www.filecoast.com/?pg=file&c1=23 ... 2=MPnXtb8n
and
http://www.filecoast.com/?pg=delete&del ... ile=ScvA5h

thanks
pi
#2
i am sorry, but for me its really not easy to understand,
the help is to cryptic (maybe its because i am in a rush)

Code:
Copy      Help
if(findrx(s "(?=<font size=2>).+(?=</font>)" 0 1 link)<0) ret

is returning:
Code:
Copy      Help
<font size=2>http://www.filecoast.com/?pg=file&c1=2317193590&c2=MPnXtb8n

i can remove '< font size = 2 >' with findreplace, but how to do it in the first place with findrx ?
pi
#3
Enclose the part you need, and specify subpatern (enclosed part) number. Also, use ? after ., or it will mach as much as possible.

Code:
Copy      Help
if(findrx(s "<font size=2>(.+?)<" 0 1 link 1)>=0) out link
#4
i think i understand !
pi


Forum Jump:


Users browsing this thread: 1 Guest(s)