M
michal.shmueli
hi,
i need some help with pattern matching. I have a long txt file which
has one line that includes a number and the word "matches,". i need to
extract the number that appears before the "matches" (which some time
appears with comma as: 1,989 matches,
and sometimes as 765 matches,
the whole line is:
<b><font face="arial,helvetica,sans-serif" size="-1">Items 1 - 10 of
1,898 matches, sorted by:</b> <select name="sort">
i did the follow, but nothing happen- couldn't figure out where the
problem is.
if (~ /([\d,]+)+matches,\s/) {$page_num=$1;}
thanks a lot,
Michal
i need some help with pattern matching. I have a long txt file which
has one line that includes a number and the word "matches,". i need to
extract the number that appears before the "matches" (which some time
appears with comma as: 1,989 matches,
and sometimes as 765 matches,
the whole line is:
<b><font face="arial,helvetica,sans-serif" size="-1">Items 1 - 10 of
1,898 matches, sorted by:</b> <select name="sort">
i did the follow, but nothing happen- couldn't figure out where the
problem is.
if (~ /([\d,]+)+matches,\s/) {$page_num=$1;}
thanks a lot,
Michal