Regex Pattern for Uipath (10 Basic Pattern)

Regex Pattern for UiPath (10 Basic Pattern)

Matching a date pattern in the format “YYYY-MM-DD”


Matching an email address:


Matching a URL:


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”:


Extracting all numbers from a string:


Extracting all capitalized words from a string:


Matching a hexadecimal colour code:


Matching a specific word or phrase in a string:


Matching a specific pattern with optional characters:


Drag&Drop Assign

To = “StrVar”, Value =

System.Text.RegularExpressions.Regex.Match(STRINGINPUT, "REGEXPATTERN").Value



1 Like

@PrasanthManivannan - Thank you for sharing! Tip: you can edit the formatting of the code parts like this

or like this

See: Basic Syntax | Markdown Guide

Well done. Thank you!