Regex Pattern for UiPath (10 Basic Pattern)
======================================
Matching a date pattern in the format “YYYY-MM-DD”
\d{4}-\d{2}-\d{2}
Matching an email address:
\w+@\w+\.\w+
Matching a URL:
https?://\S+
Matching a phone number in the format “(XXX) XXX-XXXX”:
\(\d{3}\) \d{3}-\d{4}
Matching a social security number (SSN) in the format “XXX-XX-XXXX”:
\d{3}-\d{2}-\d{4}
Extracting all numbers from a string:
\d+
Extracting all capitalized words from a string:
\b[A-Z]+\b
Matching a hexadecimal colour code:
#[A-Fa-f0-9]{6}
Matching a specific word or phrase in a string:
\bword\b
Matching a specific pattern with optional characters:
pattern(abc)?123
Drag&Drop Assign
To = “StrVar”, Value =
System.Text.RegularExpressions.Regex.Match(STRINGINPUT, "REGEXPATTERN").Value
Regards,
@PrasanthManivannan
BattleBots!!