The “Comparison to Perl 5” section of java.util.regex.Pattern
lists many differences. For example, Java does not support conditional regex. For that, you need to use some external library like JRegex.
More Related Contents:
- Find everything between two XML tags with RegEx
- Regular expression to validate username
- How does this Java regex detect palindromes?
- What do the characters ((?:(?:(?: mean in pattern-matching? [duplicate]
- Split string with dot as delimiter
- Use String.split() with multiple delimiters
- Java Regex Capturing Groups
- SCJP6 regex issue
- Get the index of a pattern in a string using regex
- Regular expression for excluding special characters [closed]
- How to determine if a number is a prime with regex?
- Java regex to extract text between tags
- Java regex: Repeating capturing groups
- Why does this Java regex cause “illegal escape character” errors?
- java.util.regex – importance of Pattern.compile()?
- Any character including newline – Java Regex
- How do I create a Stream of regex matches?
- Regex to match words of a certain length
- Java regular expression OR operator
- regex to match substring after nth occurence of pipe character
- Understanding regex in Java: split(“\t”) vs split(“\\t”) – when do they both work, and when should they be used
- How to replace ” \ ” with ” \\ ” in java
- Validate a file name on Windows
- Java split is eating my characters
- “No match Found” when using matcher’s group method
- Convert Javascript regular expression to Java syntax
- String.replaceAll is considerably slower than doing the job yourself
- Remove all occurrences of \ from string
- Extract ip addresses from Strings using regex
- Validate if input string is a number between 0-255 using regex