How to dynamically extract string using regex?

Guys what is the easiest way of getting regex expressions correct. I want to extract the following without hard coding

  1. JaneDoe
  2. 130792

Please advise as to how to easily get this regex expressions.

Hi,

How about the following pattern?

  1. ^[A-Za-z]+
  2. \d+$

Regards,

2 Likes

@samuel.chaane
give a try on:
grafik

and refer to the extracts from group:
grafik

(.*)_(\d+)_(.*)
1 Like

Thanks for the help. what is the best way of learning it

1 Like

Hi @samuel.chaane you can find many resources in internet for learning regex

You can check this post on regex learning

Hope it help you

Regards
Nived N
Happy Automation

2 Likes

Edit: @NIVED_NAMBIAR :laughing:

Hey

Check out my Regex mega post - put a few hours in and you will be a Regex guru :smiley:

2 Likes

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