repository.grepcode.com$java$root@jdk$openjdk@6-b14
repository.grepcode.com$java$root@jdk$openjdk@6-b14@java$util$regex$PatternSyntaxException.java
file
oh
o
[]
I am using split() to tokenize a String separated with * following this format:
name*lastName*ID*school*age
%
name*lastName*ID*school*age
%
name*lastName*ID*school*age
I'm reading this from a file named "entrada.al" using this code:
static void leer() {
try {
String ruta="entrada.al";
File myFile = new File (ruta);
FileReader fileReader = new FileReader(myFile);...
I need to use a regular expression that contains all the \b characters except the dot, .
Something like [\b&&[^.]]
For example, in the following test string:
"somewhere deep down in some org.argouml.swingext classes and"
I want org.argouml.swingext string to match but org.argouml string not too match. (Using the Matcher.find() method)
If I use: \b(package_name)>\b they both mat...
I need to write a regular expression that finds javascript files that match
<anypath><slash>js<slash><anything>.js
For example, it should work for both :
c:\mysite\js\common.js (Windows)
/var/www/mysite/js/common.js (UNIX)
The problem is that the file separator in Windows is not being properly escaped :
pattern = Pattern.compile(
"^(.+?)" +
File.sepa...
Unchecked exception thrown to indicate a syntax error in a
regular-expression pattern.
- Author(s):
- unascribed
- Since:
- 1.4
- Spec:
- JSR-51
Constructs a new instance of this class.
- Parameters:
desc
A description of the errorregex
The erroneous patternindex
The approximate index in the pattern of the error,
or -1 if the index is not known
Retrieves the error index.
- Returns:
- The approximate index in the pattern of the error,
or -1 if the index is not known
Retrieves the description of the error.
- Returns:
- The description of the error
Retrieves the erroneous regular-expression pattern.
- Returns:
- The erroneous pattern
java.security.AccessController
Returns a multi-line string containing the description of the syntax
error and its index, the erroneous regular-expression pattern, and a
visual indication of the error index within the pattern.
- Returns:
- The full detail message