Get only six digits from string

activities
studio

#1

Hi,
I want to find digits string.
String be like :- “javascript:drillinvoice(‘344’, ‘view’, ‘ri’, ‘25288’);”

I want only “25288” from the string.

Any one pls help!!!


#2

Hi @sams,

User Matchs activity

Pattern : \d{5}

Refer this link

Regards, Arivu:-)


#3

st1= “javascript:drillinvoice(‘344’, ‘view’, ‘ri’, ‘25288’);”
‘25288’=split(split(st1,",")(3),")")(0).ToString


#4

I had tried “\d{6}” this one.
It doesn’t give any output.

Any other regex solution for same??


#5

Hi Sams,

Use this Pattern: \d{5}


#6


#7

Thanks for helping…