When running the following 2 lookbehind zero-width assertions :
/(?<!\S)dog/ ##Match a non-non-whitespace char
/(?<=\s)dog/ ##Match a whitespace char
... why would I get different results?
That is, the first lookbehind will match if "dog" is at the beginning of the line, the 2nd lookbehind will not match same line ... Why is the 1st one matching the beginnning of the line "^" and second one isn't ???
/(?<!\S)dog/ ##Match a non-non-whitespace char
/(?<=\s)dog/ ##Match a whitespace char
... why would I get different results?
That is, the first lookbehind will match if "dog" is at the beginning of the line, the 2nd lookbehind will not match same line ... Why is the 1st one matching the beginnning of the line "^" and second one isn't ???