Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
htm text find next ..second question
#2
Just try this and see ...

Macro Macro13
Code:
Copy      Help
str s=
;Tag name: Span TD
;1. apple 1,000cash
;2. Pineapple 1,000cash
;3. apple 900cash
;4. Pineapple 1,3000cash
;5. apple 800cash
;6. apple 850cash

str line
ARRAY(str) a
int good_price=1000
foreach line s
,tok(line a -1 " " 0x2000)
,if (a[1]="apple")
,,a[2].findreplace("," "")
,,a[2].findreplace("cash" "")
,,if (val(a[2]) < good_price)
,,,good_price=val(a[2])
,,,_s = line

if(_s.len) out _s
else out "not found"


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)