Result: With your mouse, click in Result (under Misc), and then press Ctrl+k; this will create a new variable of the type IEnumerable of Matches. Before you do anything else, give it a name. I’ll call mine ienMatches (but feel free to call it whatever you want). You can see a IEnumerable of something as a list with 0 or something in. Here it holds our Matches if there are any.
Drag in a Write Line and write your output variable from the Matches activity. Because it’s an IEnumerable, which is a list/collection, we specify 0 in parentheses afterward to get the first match the value of it. In a “real” robot, we’ll write our result to an Excel sheet, a database, or a system, but a Write Line is great for testing and learning purposes.
Try to Run your workflow, and in the Output, you’ll have your invoice number (see Fig. 1.3).
hi i want to seprate s.no and title from column 1 in excel how to do it???
Hey Sonali. Can you be more specific? Or just post your question (with screenshot) on my Discord: https://andersjensen.org/#community Kind regards, Anders
Hi Can you show me how to automate captcha using Regex
I need to extract a paragraph from a mail which can have different context every time, but the sub-heading will be the same. e.x: Description – This is an example. When we use the regex command the output is stored as Ienumerable but I want to be either a string or an Integer. Can you help me on this
Hi,
I want to make the string output like below, please suggest the best way.
input=”abcdefgh”
output I should get= ab c de f gh
Thanks for writing I’m getting more than 50 messages daily. While I read
all of them, I can’t reply to everyone But I’ve created an RPA/Automation community where we’re 4900+ RPA Developers helping each other with solutions and our careers. Here’s the video on how to join (the invitation link is in the video description): https://youtu.be/xWFz-S96XGo Kind regards, Anders
How to extract a particular number from a string of characters
e.g. 413-62416-WF | Bac ID: 4432672
From the above string I want to extract the bac ID which is in this case 4432672, the string is always in the same format with “-“, “|” & “:”, but the lengths of each numbers can varry.
Hey J Jacob. Sorry about the late reply. Yes, you can use this RegEx:
(?<=Bac ID: )\d+
I hope it helped
Kind regards, Anders