bordemstirs
Member
I know this isn't a mafia specific issue, but this is the only board I'm subscribed to with fellow coders.
I'm pulling text from a website, and I'm basically trying to pull blocks of text whose individual lines do not start with a space, provided any of the lines contains a keyword.
The keyword is always followed by a less-than symbol.
The regex I'm using to match this right now is
where i is the keyword.
My -problem- however is that this generates a stack overflow error. Is there a better way to pull this without using the Or statement, which is where the stack overflow starts to occur.
I'm pulling text from a website, and I'm basically trying to pull blocks of text whose individual lines do not start with a space, provided any of the lines contains a keyword.
The keyword is always followed by a less-than symbol.
The regex I'm using to match this right now is
Code:
matcher m=create_matcher( "\\r?\\n([^ ](?:.|\\r?\\n(?!\\s))+?)" +i+ "<(.+?)\\r?\\n ", t );
My -problem- however is that this generates a stack overflow error. Is there a better way to pull this without using the Or statement, which is where the stack overflow starts to occur.