the regex works in the website and the regex builder in uipath but the boolean value is false instead of true. Why?
HI @sangasangasanga,
Use matches activity & provide pattern
Then use for each it will work
Hi @sangasangasanga,
Please find the attached sample flow using regex
I have done in that sample
Getting gmail from input.
Check & let me know any queries
Using Regex.zip (9.7 KB)
try using below pattern :
(?<=Identity.type\n).+?(\n)(?=Identity.number)
Hi i tried but no result
@varunk your sample works fine. When I modify it, it doesn’t work.
My pattern:
(?<=Identity.type\n).+?(\n)(?=Identity.number)
My test text:
Question & response
Identity type
Singapore Pink NRIC
Identity number
Hi @sangasangasanga,
Try this Pattern
Identity type - I[a-z]\st[a-z]|
Identity number -[a-z]\sn[a-z]
nope doesn’t work either
hey @sangasangasanga
done.
there’s small change in pattern,
check this attachment Test.zip (10.7 KB)
I hope this will help you.
Hi samir, yours work. If it is okay, could you explain how the below pattern worked when the above pattern did not?
“((?<=Identity.type)|).+?(\n)(?=Identity.number)”
hey @sangasangasanga
here’s the explaination:
So basically, I know usually we use “|” to specify OR.
but here I tried this (|) for making two groups,
and it worked.
this website helped me…
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.