Hi All,
I am using Regular Expressions in order to replace and strip certain html tags from the body of html.
I am using a properties file with key value pairs for the Regex patterns
I am encountering the following errors when each time the Regular Expression has been executed.
Exception in thread "main" java.lang.StackOverflowError
at java.util.regex.Pattern$LazyLoop.match(Unknown Source)
at java.util.regex.Pattern$GroupTail.match(Unknown Source)
at java.util.regex.Pattern$BranchConn.match(Unknown Source)
at java.util.regex.Pattern$CharProperty.match(Unknown Source)
at java.util.regex.Pattern$Branch.match(Unknown Source)
at java.util.regex.Pattern$GroupHead.match(Unknown Source)
Here are the properties.
0 T:\\(.*?\\): :
1 R:<P> </P>: :
2 R: : :
3 R:<SPAN(.|\n)*?>: :
4 R:</SPAN>: :
5 R:<TD(.|\n)*?>:<td>:
6 R:<P><IMG(.|\n)*?></P>:<hr/>:
7 C:StrongPattern:<P>(.|\n)*?<STRONG>(.|\n)*?/P>:<h1>:</h1>:<h2>:</h2>:
8 C:NestedTablePattern

?s)<td>(.*?)</td>:<h1>:</h1>:
9 R:<p><br/>[\\r\\n]+<h1>:<h1>:
10 R:</h1></p>:</h1>:
11 R:<P><IMG(.|\n)*?>:<hr/>:
Is it something wrong with my Regexes?How can I possibly eliminate the errors.
Thank in advance.