I'd appreciate a bit of help reading/interpreting this regular express (Python syntax):
(?:^|[b_./-])[Tt]est
(It is the default RE use by nosetest as a filter when looking for test files). Described here in the 'Extended usage' section.
EDIT: If you came here due to looking into nose, you may want to look into pytest as an alternative.
My understanding so far: The open-paren question-mark colon stuff close paren is an 'extension' that means to exclude the stuff from the string in the match result. Which (from my point of view as just trying to understand whether a given filename meets or fails the expression) means I can ignore it(?)
The last part '[Tt]est' means Test or test.
The meaning of the rest is hazy. The caret means 'match start of string', the vertical bar means OR, and the chars in brackets (b, underscore, period, slash, minus) are the alternative match. In other words match start-of-string or one of the 5 specified characters, followed by Test or test? Which would mean the strings 'bTest' and '/Test' would match (and they apparently do not).
Thanks for any helping in improving my interpretation of the pattern!