regex
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
01-03-24 07:39 PM
How can I apply regex to a variable, so then I can store that result in another variable?
------------------------------
Lucia Lisdero
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
03-03-24 06:50 AM
You can use the calculation stage to perform your regex operation and store that result in different variable.
------------------------------
Ayush Singh
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
03-03-24 09:08 PM
------------------------------
Leonardo Soares
RPA Developer
América/Brazil
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
04-03-24 08:22 AM
Dear Lucia
Add Calculate stage: Drag and drop a Calculate stage onto your process diagram.
Configure the stage:
Input: Select the input variable where you want to apply the regex.
Calculation Expression: Define the regex pattern or function to perform the operation.
Output: Specify the output variable where you want to store the result.
Specify the regex pattern:
Use regex functions such as Regex.Match, Regex.Replace, or Regex.Split to perform the desired operation.
Provide the regex pattern within the function parameters.
------------------------------
SYED FAHEEM
RPA Developer
Arab Financial Services
Manama
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
04-03-24 03:57 PM
Hi @lulis
Can you specify the context a little bit more on what you are trying to achieve?
Normally utility Strings solves the purpose.
In this example below it extracts all the numbers from a sample text and puts them into a collection.
Depending on business scenario, the required regex pattern should be used.
Sample regex patterns can be found in the below link
JavaScript RegExp Reference (w3schools.com)
If you find the answer useful, you can mark as best solution.
Thanks
------------------------------
Susamay Halder Consultant
Consultant
Bruce Power
+1(437)217-1086
------------------------------
