Regex for string manipulation

My text is id:65476 name:ashu and i want id ie 65476 from whole text using regex.So plz help me to get regex for this.I want something which is between ‘id:’ and ‘name’ and for this can anyone suggest me regex.

\d{5}

Hii thanks for the reply.

input:
id:74565
name:ashu
country:india

and i want output as:74565 ashu india

so help me out with regex for the above.

@ashwinipundkar Use Regex as shown in below link

1 Like

thank you …

1 Like

Hey @indra

it could be shorter too like this :slight_smile:

Best thing if you want the lable too then capture both them in a group to get lable and respective values :slight_smile:

Regards…!!
Aksh

3 Likes

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.