Studio: RegEx on a Web Application

Fine

Let’s go in a simple way of approach

Say your website has multiple other text as well along with this

  1. Then first use a GET TEXT activity to get all text you want from that page
    And even you can get the text from a specific region of that page

  2. Get the output in a string datatype named Strinput

  3. Then use a assign activity like this

stroutput_1 = System.Text.RegularExpressions.Regex.Match(Strinput.ToString,”(?<=Remittance Details:).*”).ToString.Trim

Stroutput_1 will give ”Online” as output

Then use another assign activity like this

stroutput_2 = System.Text.RegularExpressions.Regex.Match(Strinput.ToString,”(?<=Task Cover:).*”).ToString.Trim

Stroutput_2 will give ”PO41991” as output

Hope this would help you resolve this
Cheers @Prinal_C

1 Like