I have an expression like
Client ID : A983494
Client Name : John William
Client Country : rome
I want to pick A983494, John William , Rome from this string . What would be the Regex
I made [a-zA-Z0-9_]+$
This picks last word of each line(A983494, William , Rome).
Now I am thing to put OR in this and add logic to pick word after ‘:’ so that it picks through both the logics . What should OR part of regEx Look like?
That’s a good question
Here ?<=: is an expression that will take all the values to the right side of :
For example if we mention as (?<=!).* In a string like ABCD!efgh, it will give us output as efgh
And if we add .* next to this expression it will take all the characters next to the special symbol !
So does the same in this expression we are using
Simple isn’t it
Cheers @XYZ_1991
Please use ‘Matches’ activity and use (?<=:\s*).* as pattern. It will give you an array of string, from where you can easily find your required string.