Need to match exactly 7-10 digits with a regex, on a word boundary, without \b support. Ideas?
-
-
-
Replying to @syntaxerr66
@syntaxerr66 introduces false positives when I have a string of 11 digits (something that is not of interest but happens VERY often)1 reply 0 retweets 0 likes -
-
Replying to @syntaxerr66
@syntaxerr66 that also picks up 11 digits (matches the last 7-10 digits), plus I could have anything after the digits (space, letter, etc.)2 replies 0 retweets 0 likes -
Replying to @MalwareJake
@MalwareJake@syntaxerr66 perhaps ^\d{7}(?:\d{0,2})?$1 reply 0 retweets 0 likes -
Replying to @JanneFI
@JanneFI@syntaxerr66 that would work if I knew the numbers were at the beginning of a line, not always the case2 replies 0 retweets 1 like
Replying to @MalwareJake
@MalwareJake @JanneFI @syntaxerr66 How about this: ((?<=[^\d])|^)\d{7,10}((?=[^\d])|$)
1:50 PM - 3 Apr 2014
0 replies
0 retweets
1 like
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.