Pinned Loading
-
-
GitAndrewCoffee/wedding_planner
GitAndrewCoffee/wedding_planner PublicU of MN Coding Bootcamp - Project 2 Team 2 - Fall 2021
JavaScript
-
-
-
Regex Tutorial - a Hex Value
Regex Tutorial - a Hex Value 1# Regex Tutorial - Matching a Hex Value
23A regex, or regular expression, is a sequence of characters that defines a search pattern. This means a regex can be used in a search algorithm to find patterns of characters within a string based on the regex sequence.
45For instance, given a string of words like "The Quick Brown Fox", if searched using a regular expression of /[A-Z]/g, the search would find all the capital letters in the string, in this case, 'T', 'Q', 'B', 'F'. Can you guess why? The regex defined the characters to be searched. Between the slashes ('/'), the brackets enclose a character set to be included in the search. The character set shown is a range, A-Z, so the search will look for any letter between capital A and capital Z (regex is case sensitive, if we wanted lowercase numbers, we would give /[a-z]/g).
-
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.