Regular expression is basically used to describe a pattern of characters so it's used for pattern matching or pattern searching, commonly used for validation, as well as, pulling things out of a body of text, or body of characters, email addresses, phone number social security numbers things that have certain patterns in their formatting