About 14,600,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 - Carets in Regular Expressions - Stack Overflow

    Jun 1, 2017 · Specifically when does ^ mean "match start" and when does it mean "not the following" in regular expressions? From the Wikipedia article and other references, I've …

  3. regex - Matching up to the first occurrence of a character with a ...

    Be aware that the first ^ in this answer gives the regex a completely different meaning: It makes the regular expression look only for matches starting from the beginning of the string.

  4. OR condition in Regex - Stack Overflow

    Apr 13, 2013 · Note that your regex would have worked too if it was written as \d \w|\d instead of \d|\d \w. This is because in your case, once the regex matches the first option, \d, it ceases to …

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

  7. What does the regex \S mean in JavaScript? - Stack Overflow

    What does the regex \S mean in JavaScript? [duplicate] Asked 14 years, 10 months ago Modified 7 years, 1 month ago Viewed 349k times

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

  9. Regex - how to tell something NOT to match? - Stack Overflow

    Jun 3, 2010 · How can I create a regex NOT to match something? For example I want to regex to match everything that is NOT the string "www.petroules.com". I tried [^www\.petroules\.com] …

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