Regex bug: Starts w/ '^' but finding stuff NOT at start
Posted: Mon Dec 02, 2013 5:56 pm
I have this NON-WORKING Java code.
It's a constructor's signature line (nothing after the opening curly), and the top of the next function's JavaDoc (documentation) block. (I use signature lines from other classes for constructing functions sometimes.)
When searching for
It should find
And it does. However, when searching in the up direction only, it also BUT ONLY SOMETIMES finds
Huh? The regex is anchored to line-start, so something is clearly wrong here. In anyone else seeing this?
Code: Select all
__TAB__public GLTRawIsListOfE(boolean b_elementsCopyable, String s_rgcName) {
/**
<P>Create a new <CODE>GLTLOCharSequenceRoot</CODE>.</P>
YYYWhen searching for
Code: Select all
^[ \t]*(?:public|protected|private)?\s+\b\w+\b\s*\(Code: Select all
__TAB__public GLTRawIsListOfE(Code: Select all
boolean b_elementsCopyable, String s_rgcName) {
/**
<P>Create a new <CODE>GLTLOCharSequenceRoot</CODE>.</P>