Perl is forgiving about malformed matching constructs, as in the expression *a, as well as dangling brackets, as in the expression abc], and treats them as literals. This class also accepts dangling brackets but is strict about dangling metacharacters like +, ? and *, and will throw a PatternSyntaxException if it encounters them.
Hi everyone I am getting this error "java.util.regex.PatternSyntaxException: Dangling meta character '?' near index 0" I am reading an input file which has data like ?xyz In my code I am replacing the binary equivalent of ? that is "\u003F" with "" text = text.replaceAll("\u003F",""); But I still get this error... Any help is greatly appreciated Thanks in advance.
hi all I have the problem.... Whenever i tried to replace the "*" from the String which contains the asterick im getting ava.util.regex.PatternSyntaxException....... how can i handle this exception ....and my sample code is below please have a look........ String remStr = "*"; String inStr = "****"; inStr.replaceAll(remStr,"").trim(); Please help me any one.... thanks in advance