About 14,300,000 results
Open links in new tab
  1. Regex that accepts only numbers (0-9) and NO characters

    By putting ^ at the beginning of your regex and $ at the end, you ensure that no other characters are allowed before or after your regex. For example, the regex [0-9] matches the strings "9" as …

  2. regex - Decimal or numeric values in regular expression validation ...

    I am trying to use a regular expression validation to check for only decimal values or numeric values. But user enters numeric value, it don't be first digit "0" How do I do that?

  3. regex - Match linebreaks - \n or \r\n? - Stack Overflow

    While writing this answer, I had to match exclusively on linebreaks instead of using the s-flag (dotall - dot matches linebreaks). The sites usually used to test regular expressions behave …

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

  5. regex - Regular Expressions: Is there an AND operator? - Stack …

    In regex in general, ^ is negation only at the beginning of a character class. Unless CMake is doing something really funky (to the point where calling their pattern matching language …

  6. regex - What is a non-capturing group in regular expressions?

    Aug 18, 2010 · What is also important there is that regex with non-capturing groups (?: is much faster than the same regex with capturing groups ' ('. So we should use non-capturing groups …

  7. regex - Regular Expressions- Match Anything - Stack Overflow

    Normally the dot matches any character except newlines. So if .* isn't working, set the "dot matches newlines, too" option (or use (?s).*). If you're using JavaScript, which doesn't have a …

  8. regex - Regular expression to match balanced parentheses - Stack …

    I need a regular expression to select all the text between two outer brackets. Example: START_TEXT (text here (possible text)text (possible text (more text)))END_TXT ^ ...

  9. regex - How is the AND/OR operator represented as in Regular ...

    I now try to match the string given by the user with the following, automatically created, regex expression: ^(part1|part2)$ This only returns answer 1 and 2 as correct while answer 3 would …

  10. regex - What are ^.* and .*$ in regular expressions? - Stack Overflow

    In case it is JS it indicates the start and end of the regex, like quotes for strings. stackoverflow.com/questions/15661969/…