Macro_Mitch
New member
Hello. Can someone please help how i can extract the only 4 digits available in a string eg:
1 "gajkd4ksks8nsh2hjs7ks"
2 "2jdjjd4jjsj7hsh3"
3 "Gsgs5926jsjd"
4 "HshhhdhklakkGhsh5277"
Note that the strings can be of different lengths and the digits might appear randomly in the string they don't follow a specific oder of appearance. I've tried the below regex (\d{4}) but it only works when the digits are placed together like in example 3. Thank you in advance
1 "gajkd4ksks8nsh2hjs7ks"
2 "2jdjjd4jjsj7hsh3"
3 "Gsgs5926jsjd"
4 "HshhhdhklakkGhsh5277"
Note that the strings can be of different lengths and the digits might appear randomly in the string they don't follow a specific oder of appearance. I've tried the below regex (\d{4}) but it only works when the digits are placed together like in example 3. Thank you in advance