I need to find in a string the first occurrence (if exists) of 4 consecutive numbers.
For example:
Hello6326 -> 6326 Tomo3753rrow -> 3753 23Thankyou -> (nothing) 1121 -> 1121
I know that I have to use the regexp, I tried different solutions but without luck.
/\d{4}/g
Sample:
Output: