About 4,170,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. Regex - how to match everything except a particular pattern

    Mar 5, 2009 · How do I write a regex to match any string that doesn't meet a particular pattern? I'm faced with a situation where I have to match an (A and ~B) pattern.

  4. regex - Regular expression to match characters at beginning of …

    Mar 30, 2018 · Regex symbol to match at beginning of a line: ^ Add the string you're searching for (CTR) to the regex like this: ^CTR Example: regex That should be enough! However, if you …

  5. 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 …

  6. regex - Match everything except for specified strings - Stack …

    Mar 8, 2010 · I know that the following regex will match "red", "green", or "blue". red|green|blue Is there a straightforward way of making it match everything except several specified strings?

  7. Regex: ignore case sensitivity - Stack Overflow

    Mar 11, 2012 · How can I make the following regex ignore case sensitivity? It should match all the correct characters but ignore whether they are lower or uppercase. G[a-b].*

  8. 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 …

  9. Regex: match everything but a specific pattern - Stack Overflow

    Nov 6, 2009 · I need a regular expression able to match everything but a string starting with a specific pattern (specifically index.php and what follows, like index.php?id=2342343).

  10. regex - Regular expression to stop at first match - Stack Overflow

    My regex pattern looks something like <xxxx location="file path/level1/level2" xxxx some="xxx"> I am only interested in the part in quotes assigned to location.