About 14,100,000 results
Open links in new tab
  1. regex - How .* (dot star) works? - Stack Overflow

    Oct 1, 2012 · In Regex, . refers to any character, be it a number, an aplhabet character, or any other special character. * means zero or more times.

  2. Regex: ?: notation (Question mark and colon notation)

    Dec 8, 2018 · The regex compiles fine, and there are already JUnit tests that show how it works. It's just that I'm a bit confused about why the first question mark and colon are there.

  3. regex - What is the difference between .*? and .* regular …

    Repetition in regex by default is greedy: they try to match as many reps as possible, and when this doesn't work and they have to backtrack, they try to match one fewer rep at a time, until a …

  4. regex - How to match "any character" in regular expression?

    Feb 24, 2023 · For reference, from regular-expressions.info/dot.html: "JavaScript and VBScript do not have an option to make the dot match line break characters. In those languages, you can …

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

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

  9. regex - Regular Expression with wildcards to match any character ...

    Jan 2, 1999 · Parentheses in regular expressions define groups, which is why you need to escape the parentheses to match the literal characters. So to modify the groups just remove all of the …

  10. regex - Regular expression to match string starting with a specific ...

    Nov 13, 2021 · How do I create a regular expression to match a word at the beginning of a string? We are looking to match stop at the beginning of a string and anything can follow it. For …