cancel
Showing results for 
Search instead for 
Did you mean: 

RegEx pattern

SamLima
Level 7
How or where to know how to write a valid pattern for RegEx?
how do suppose I know how to write it?


------------------------------
Sam Lima
------------------------------
2 REPLIES 2

ewilson
Staff
Staff
Hi @SamLima,

There are various regular expression testers online that you can use for testing. You just need an example of the data you're going to run the tests against. Here's one that I've used in the past:

http://regexstorm.net/tester

There's also a Reference page on that site that shows information about the various flags, etc that can be used in RegEx's.

Cheers,


------------------------------
Eric Wilson
Director, Integrations and Enablement
Blue Prism Digital Exchange
------------------------------

Hi Sam,

There are two steps to it basically:

First step is first building regular expression using some online resource:

You can use a lot of resources to test the Regular expressions that you create using the following resources: Regex Tester , Regex101etc

Second step is to actually implement it from Blue Prism:

Once you have a regular expression in place, next step is to download and import the latest asset from Digital Exchange: Utility - Strings

Here, you can find a lot of useful actions that you can use to get various operations done using regular expressions like you can validate if a pattern of string exists or not as per your regular expression, you can also replace any string if you want if it matches your regular expression, you can also extract a set or subset of strings based on the pattern described by your regular expression from a entire text data.

33932.png33933.png33934.png


I would suggest start using each of the action and go through the initial values defined in each of the actions in Object Studio to get a better understanding of how they work. Let me know in case you face any issues while understanding any one of these actions.

------------------------------
----------------------------------
Hope it helps you out and if my solution resolves your query, then please mark it as the 'Best Answer' so that the others members in the community having similar problem statement can track the answer easily in future

Regards,
Devneet Mohanty
Intelligent Process Automation Consultant | Sr. Consultant - Automation Developer,
Wonderbotz India Pvt. Ltd.
Blue Prism Community MVP | Blue Prism 7x Certified Professional
Website: https://devneet.github.io/
Email: devneetmohanty07@gmail.com

----------------------------------
------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
Hope this helps you out and if so, please mark the current thread as the 'Answer', so others can refer to the same for reference in future.
Regards,
Devneet Mohanty,
SS&C Blueprism Community MVP 2024,
Automation Architect,
Wonderbotz India Pvt. Ltd.