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,

@samuel.chaane
give a try on:
grafik

and refer to the extracts from group:
grafik

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

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

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

Edit: @NIVED_NAMBIAR :laughing:

Hey

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