REGULAR EXPRESSION wildcards

REGULAR EXPRESSION

Good morning,
where can I find regular expression

{(any text/number/points)Work1023

Please note (any text/number/dots) refers to wildcards

Thanks for your help

Hi @Luca_Smith

Can you give more details like input and output

If you need to extract whole value like in the belo image

System.Text.RegularExpressions.Regex.Match(YourString,"\S.+").Tostring

image

OR

System.Text.RegularExpressions.Regex.Match(YourString,"\S.+(?=Work1023)").Tostring

image

Regards
Gokul

@Luca_Smith

{.*?Work1023

System.Text.RegularExpressions.Regex.Match(YourString,“\S.+(?=Work1023)”).Tostring

Hi @Luca_Smith

{.*?Work1023

In this regular expression:

* `{` and `Work1023` are matched literally.
* `.*?` is used to match any text, numbers, or dots (wildcards) between `{` and `Work1023`. The `.*?` is a non-greedy quantifier that matches as few characters as possible while still allowing the pattern to match.

Check out the blog to know more above the regular expression

How To Extract Data With RegEx In UiPath | by Abhimanyu Thite | Globant | Medium(regex,workflows%2C%20and%20scrape%20web%20pages.

https://docs.uipath.com/studio/standalone/2023.4/user-guide/regex-search

Regards
Gokul

Hi Please go and refer to the below link in that editor you can learn the regex.
If you want to select any character in the given word you can use the below code.

Given Word: 123@#Cat
REGX: \d.*

Here I use \d Because it starts with a digit if the given word starts with a word so I will write the code according to that

Let me know if it helps if not I will try to give a better solution.

@Divyashreem

Can you share the proper input and expected output

@Luca_Smith