S
sravan
I was just trying to use a regular expression for finding me the
patterns which match
X(\\n|\\r|.)*? Y
What this means is to find the pattern which matches any String that
starts with X followed by any number of characters or new lines or new
carriage returns and finally followed by Y.
To summarize find the pattern which matches the block X ........ Y
which can be separated by any characters/newlines/tabs etc.
Ex:
X
AFJALFJA
Y
should be selected.
When i use the pattern shown above the java prog throws me
StackOverflow exception. Can you throw me some light into
pattern/expression modification??
Thanx
Sravan
patterns which match
X(\\n|\\r|.)*? Y
What this means is to find the pattern which matches any String that
starts with X followed by any number of characters or new lines or new
carriage returns and finally followed by Y.
To summarize find the pattern which matches the block X ........ Y
which can be separated by any characters/newlines/tabs etc.
Ex:
X
AFJALFJA
Y
should be selected.
When i use the pattern shown above the java prog throws me
StackOverflow exception. Can you throw me some light into
pattern/expression modification??
Thanx
Sravan