Quote:
If you encounter a set of numbers like
Quote:
$1,264,543.10
, both RusselB's and mine will fail to match.


I disagree that my code will not match that number.

While I haven't actually tested it (too tired to do so now), my code should work fine for a number like that using the following method.

Comments added to code to show how I believe that my code will work fine for a number like that.
Code:
on *:text:*:#:{
  ;number entered as $1,264,543.10
  tokenize 32 $strip($1-)
  ;control codes stripped and line re-evaluated with standard spaces being token separators.
  var %a = 1, %b = $0
  while %a <= %b {
    if $remove($gettok($1-,%a,32),$chr(44),$chr(36)) isnum 100000- {
     ;$gettok($1-,%a,32) on the first loop where %a = 1, becomes $1,264,543.10
     ;commas and dollar sign removed using $remove leaving 1264543.10
     ;check if 1264543.10 is equal to or greater than 100000
     ;comparison shows true, thus a message using the original entered number $1,264,543.10 is posted back to the channel.
     .msg $chan The number $gettok($1-,%a,32) was said.
    }
    inc %a
    ;var %a increases by 1, making it 2, which is outside of the loop limit, thus ending the loop.
  }
}