Support Portal

for ProcessRobot and WinAutomation

Start a new topic
Answered

Regex Expression Output

Hi,

I am using (?<=Name:).*$ this regex expression to split name from following string:-

Name: Test

Age: 25.


It is giving me output:-

Name: Test

Age:25


I tried this is regex tester that time I got the output :- Test

But in process it is not working. Please guide.


Best Answer

Hi Jayesh,


Try using (?<=Name:).*[^\n] in Text to find field under Parse Text Action.


I hope it will help you.


Try —> (?<=Name:)[^\n]* This will capture everything before the line break. https://www.rexegg.com/regex-quickstart.html ^ Good cheat sheet

Hi,

Thanks for your reply.

I just want a reply "Test". Because I want to read just Name information.

Please guide me on this.

Did you try the solution I gave you?

Yes,

It is giving me following output:-

Name:

Age: 25

ADMIN
Answer

Hi Jayesh,


Try using (?<=Name:).*[^\n] in Text to find field under Parse Text Action.


I hope it will help you.

Login or Signup to post a comment