Get only six digits from string

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!!!

Hi @sams,

User Matchs activity

Pattern : \d{5}

Refer this link

Regards, Arivu:-)

st1= “javascript:drillinvoice(‘344’, ‘view’, ‘ri’, ‘25288’);”

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

Any other regex solution for same??

Hi Sams,

Use this Pattern: \d{5}

1 Like

1 Like

Thanks for helping…