Regex in Blue Prism

MadhuG001

Member
Hi All,

I am quiet new to Regex with Blue Prism
Can anyone please show me a very simple example how to use it in Blue Prism.

This will be really helpful.
Thank you
 

mundhir123

New Member
Hi @DanLit,

Nice example... one small correction though.
I think the RegEx pattern the last digit has to be 7 instead of 2 as the IndData is 12A27
Pls correct me if I am wrong.
 

DanLit

New Member
Yes @Manikanta
I tried and it works for any number and when alpa is given the result is false.
My understanding is that the {2} is meant for number of consecutive digits.
Am I right @DanLit?

Hi,

Yes you are right mundhir123

Regexopattern: ^([0-9]){2}(A)([0-9]){2}

^ = starts with
([0-9]) = () a group, this is first group, [] range, so full first group is a group with range 0-9
{2} = number of times this should occur, {2} says the group above should occur 2 times
(A) = new group, only matches a A
([0-9]){2} = another group with two digits.

Also try https://regex101.com/ for testing your patterns.
 
Last edited:

mundhir123

New Member
Hi,

Yes you are right mundhir123

Regexopattern: ^([0-9]){2}(A)([0-9]){2}

^ = starts with
([0-9]) = () a group, this is first group, [] range, so full first group is a group with range 0-9
{2} = number of times this should occur, {2} says the group abowe should occur 2 times
(A) = new group, only matches a A
([0-9]){2} = another group with two digits.

Also try https://regex101.com/ for testing your patterns.

Thanks for your explanation @DanLit
 
Top