2 ms·
There's an uncommon bug in the regexp in the link: sequence count metacharacters such as * are postfix, not prefix. (please ignore whitespace in following rege
by silvestrov 16y ago
There's an uncommon bug in the regexp in the link: sequence count metacharacters such as * are postfix, not prefix. (please ignore whitespace in following regexps as the YA markup requires whitespace to avoid making text italicized).
parseInt\(* [^,]\) means match "parseInt", then 0-or-more '(', then a character that is not a comma, then ')'.
The regexp should be something like parseInt\([^,()]* \)
which returns code where the argument is more than a single character
http://www.google.com/codesearch?hl=en&lr=&q=parseInt%5C%28%5B%5E%2C%28%29%5D*%5C%29 http://www.google.com/codesearch?hl=en&lr=&q=parseIn...
- paulbaumgart 16y agoFYI: http://news.ycombinator.com/formatdoc http://news.ycombinator.com/formatdoc