I am working on a robot to scrape information from a website.
Fairly new to UiPath and absolute novice at RegEx.
I am scraping the data using the screen scraping activity and getting the full text.
After that, I am extracting the data from the extracted text using RegEx.
I figured out all the static patterns and those are all working perfectly.
But now I am stuck at a point and no too knowledgeable on complex RegEx logic.
So, coming to the problem.
I have the extracted text ready. It will have a fairly consistent pattern. I am looking to get a boolean output of true or false depending on the pattern exists or not.
Below is the sample of the text. Sorry for the faked data, but as the actual data may have personal contact details, I cannot share an accurate sample.
More Stuff Above (use of lookbehind may be necessary here as there is more text above) RECEIVER FirstName MiddleName LastName Street 1FantasyRoad FakeArea ImaginaryDrive Street 2MadeupBuiling DummyAppartment Zip Code12345 CityRandom City StateAnyState CountrySomeCountry ContacName of Contact Phone+12 321546456 Emailemailofcontact@anymail.com SENDER More Stuff Below which may contain another 'Street 2'
Now, my requirement is to get a true or false value if the pattern contains Street 2 after the RECIVER, Name and Street 1 as highlighted in bold below.
RECEIVER FirstName MiddleName LastName -\Name of Person. Can be multiple words. Street 1FantasyRoad FakeArea ImaginaryDrive \-Line 1 of Address. Can be any number of words 'Street 2'MadeupBuiling DummyAppartment \-Line 2 of Address. Can be any number of words Zip Code12345 \-Post Code of address CityRandom City \- Name of city. Can be multiple words StateAnyState \- Name of State CountrySomeCountry \- Name of country ContacName of Contact \- Name of contact person Phone+12 321546456 \- Phone number of contact person Emailemailofcontact@anymail.com \- Email of Contact person SENDER More stuff below that could contain another 'Street 2'