With the use of regex i want split this string

Can anyone help me with this
My Input is:

Agent name: FOCAPPPHQ10_AGNT

Completion code(if applied): 189

%PRIORITY=3 - Moderate

Output needed is

Match 4:
FOCAPPPHQ10_AGNT

Match 5:
189

Note : This match value will get change each time

@Karthikeyan34 Can you confirm every time format will be same or different.

The name and code will get change @indra

Can you please provide 3 different input datas

Input 1
Agent name: FOCAPPPHQ10_AGNT

Completion code(if applied): 189

%PRIORITY=3 - Moderate

Input 2
Agent name: jhcsjchjc90_ANT

Completion code(if applied): 256

%PRIORITY=3 - Moderate

Input 3
Agent name: DSAJHVVCJS99_NTAG

Completion code(if applied): 855

%PRIORITY=3 - Moderate

@kadiravan_kalidoss

@Karthikeyan34

  1. Store all the data to text file
  2. Read text files line by line
  3. Split based on :

Hi Greetings…!

Please refer this xaml. Tested with your three sample datas. Working fine.

Name_Code_Regex.xaml (7.3 KB)

Thanks!