Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- pattern matching....
June 27, 2005, 4:00 pm
rate this thread
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
if (~ /([\d,]+)+matches,\s/)
thanks a lot,