How to get specific string in notepad

Hi,

I am getting Api response and writing it in notepad. From note pad i want to get only specific text how to retrieve that.

Text which i want to get is "“sys_updated_by”:“AC72547”

Can some one help me on this.Untitled.txt (12.5 KB)

Regards,
Hima

Use RegExp Activity in studio…

Hello

Will it always be 2 letters followed by 5 numbers? If so, try this.

Use a Matches activity and insert the following Regex as the pattern:
(?<=“sys_updated_by”:")\D\D\d+

Check out the Regex101 Link

Write the output as such:
OUTPUTVARIABLE.Value
Update capital letters with your output variable :slight_smile:

I hope this helps.

Check this.

Thank you
Balamurugan.s

Hi Steven,

Is match activity out put i am getting as boolean “True”. how to get value.

1 Like

@thima

Use Matches activity, not Is Match

Matches Activity will retrives all the matched results

Mark as solution if this helps

Thanks

1 Like

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