About 11,200,000 results
Open links in new tab
  1. 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 …

  2. 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.

  3. 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/…

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

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

  6. regex - Question marks in regular expressions - Stack Overflow

    Apr 7, 2011 · I'm reading the regular expressions reference and I'm thinking about ? and ?? characters. Could you explain me with some examples their usefulness? I don't understand …

  7. regex - What's the difference between () and - Stack Overflow

    The regex [a-z] will match any letter a through z. The () construct is a grouping construct establishing a precedence order (it also has impact on accessing matched substrings but …

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

  10. python - In regex, what does [\w*] mean? - Stack Overflow

    Oct 16, 2009 · Quick answer: ^[\w*]$ will match a string consisting of a single character, where that character is alphanumeric (letters, numbers) an underscore (_) or an asterisk (*). Details: …