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

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

  3. symbols - What is the meaning of + in a regex? - Stack Overflow

    Oct 3, 2010 · Now, when the regex engine tries to match against aaaaaaaab, the .* will again consume the entire string. However, since the engine will have reached the end of the string …

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

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

  6. RegEx: Grabbing values between quotation marks - Stack Overflow

    Oct 5, 2008 · The RegEx of accepted answer returns the values including their sourrounding quotation marks: "Foo Bar" and "Another Value" as matches. Here are RegEx which return …

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

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

  9. xml - Regular expression \p {L} and \p {N} - Stack Overflow

    Feb 15, 2013 · I am new to regular expressions and have been given the following regular expression: (\\p{L}|\\p{N}|_|-|\\.)* I know what * means and | means "or" and that ...

  10. regex - Regular Expression to find a string included between two ...

    I need to extract from a string a set of characters which are included between two delimiters, without returning the delimiters themselves. A simple example should be helpful: Target: …