How can I get a match when numbers are 5 or 7 digits long with these parameters?
Asked
Active
Viewed 45 times
-4

Biffen
- 6,249
- 6
- 28
- 36

b00sted 'snail'
- 354
- 1
- 13
- 27
-
3Attaching image doesn't make it a question – anubhava Jul 11 '16 at 07:03
-
Enclose with `\b`s. – Wiktor Stribiżew Jul 11 '16 at 07:05
-
Wiktor Stribiżew, thank you! – b00sted 'snail' Jul 11 '16 at 07:20
1 Answers
0
If I understand your question correctly, this (visualize here) should do it:
`/\b([5-9]\d{4}(?:\d{2})?)\b/`

Will
- 24,082
- 14
- 97
- 108