Hi all,
I have a regular expression in XML tag as
<spec>"{?i}impt{?-i}.*\.{?i}abc{?-i}"</spec> when I try to compile the
pattern as follows
public void addFilePattern(String a, String spec)
{
Pattern ptn = Pattern.compile(spec); I am getting this exception
"java.util.regex.PatternSyntaxException: Illegal repetition near index 0" could anyone of you please tell me how torectify it.I even tried ^ and $ at the starting and ending of the expression instead of
".
thanks in advance.
Bhargavi
SCJP2,SCWD,SCBCD,IBM Certified SOA Associate,IBM Certified Architectural Design of SOA Solutions