About 3,480,000 results
Open links in new tab
  1. A regular expression to exclude a word/string - Stack Overflow

    I have a regular expression as follows: ^/[a-z0-9]+$ This matches strings such as /hello or /hello123. However, I would like it to exclude a couple of string values such as /ignoreme and …

  2. How can I validate an email address using a regular expression?

    Over the years I have slowly developed a regular expression that validates most email addresses correctly, assuming they don't use an IP address as the server part. I use it in several PHP …

  3. Searching for UUIDs in text with regex - Stack Overflow

    I'm searching for UUIDs in blocks of text using a regex. Currently I'm relying on the assumption that all UUIDs will follow a patttern of 8-4-4-4-12 hexadecimal digits. Can anyone think of a …

  4. Regex pattern including all special characters - Stack Overflow

    Aug 5, 2013 · 35 That's because your pattern contains a .-^ which is all characters between and including . and ^, which included digits and several other characters as shown below: If by …

  5. regex - Regular expression to match standard 10 digit phone …

    Here is a regex that will match any phone number for every country in the world regardless of the number of digits. It matches formatted and unformatted national and international phone …

  6. How to negate specific word in regex? - Stack Overflow

    May 10, 2012 · I know that I can negate group of chars as in [^bar] but I need a regular expression where negation applies to the specific word - so in my example how do I negate an …

  7. regex - How can I match "anything up until this sequence of …

    If you're looking to capture everything up to "abc": /^(.*?)abc/ Explanation: ( ) capture the expression inside the parentheses for access using $1, $2, etc. ^ match start of line .* match …

  8. javascript - Regex for password must contain at least eight …

    Oct 26, 2013 · I want a regular expression to check that: contains at least eight characters, including at least one number and includes both lower and uppercase letters and include at …

  9. What is a good regular expression to match a URL? [duplicate]

    Sep 28, 2010 · John Gruber's Liberal, Accurate Regex Pattern for Matching URLs is also good. See this SO question for how to modify it to work in Javascript.

  10. regex - Regular expression for floating point numbers - Stack …

    However, regexes also use the \ character for escaping, so if you want to match a literal \ character, you must escape it for the regex engine, and then escape it again for Java: // …