Home > other >  Uipath how to obtain E-mail specified string?
Uipath how to obtain E-mail specified string?

Time:11-23

Want to ask about how to intercept E-mail the text of the specified string, such as:
User name: ABC
Password: 1234
Want to capture the ABC and 1234 how to write?
Thank you!

CodePudding user response:

What is your text string?

CodePudding user response:

reference 1st floor chuifengde response:
what is your text string?


The text string will contain the following contents:
User name: ABC
Password: 1234
But may also have other things, see the user hair of what, I want to find in the string the user name password and then extract, don't know how to implement

CodePudding user response:

 s="" "user name: ABC 
Password: 1234
"" "
The import re
(l=re. The.findall (r "? <=) (. *?) \ s ", s, re. DOTALL)
Print (l)
#===[' ABC ', '1234']
  • Related