About 4,980,000 results
Open links in new tab
  1. java - What does regular expression \\s*,\\s* do? - Stack Overflow

    Dec 6, 2012 · To code a literal backslash in Java, you must escape the backslash with another backslash, so to code \s in the regex, you must code "\\s" in your program. – Bohemian ♦ …

  2. regex - How does "\\d" work in java? - Stack Overflow

    Jan 26, 2015 · So, id you put it all together, this regex matches a string that has the following: Any number of any character, then a digit, and then any number of any character. If we translate …

  3. java - Regex: ?: notation (Question mark and colon notation)

    Dec 8, 2018 · If efficiency were a consideration, would be better off coding the operation by hand instead of using regex's, rather than accept the efficiency gain of capturing vs. non capturing …

  4. java - How to extract a substring using regex - Stack Overflow

    Since Java 9. As of this version, you can use a new method Matcher::results with no args that is able to comfortably return Stream<MatchResult> where MatchResult represents the result of a …

  5. Easy way to convert regex to a java compatible regex?

    Jan 15, 2014 · It takes your normal regular expression and outputs the Java-compatible string expression. Saved me tons of time converting huge regex strings myself. Note that not all …

  6. java - What do ^ and $ mean in a regular expression ... - Stack …

    Aug 2, 2011 · So in your example, the first regex will report a match on [email protected], but the matched text will be [email protected], probably not what you expected. The second regex will …

  7. java - How can I provide an OR operator in regular expressions?

    Nov 28, 2012 · Generally speaking about regexes, you definitely should begin your journey into Regex wonderland here: Regex tutorial. What you currently need is the | (pipe character) To …

  8. regex - Java regular expression OR operator - Stack Overflow

    Jan 9, 2010 · Regex java operators. Hot Network Questions When does a damaged tire, in this case a GP 5000 with sidewall ...

  9. regex - Java regular expressions and dollar sign - Stack Overflow

    Oct 4, 2010 · It is a regex as a string literal (within double quotes). period (.) and dollar-sign ($) are special regex characters (metacharacters). To make the regex engine interpret them as …

  10. java - Use String.split () with multiple delimiters - Stack Overflow

    Java regex to split a string by using different delimiters. 1. Splitting a string in Java using multiple ...

Refresh