I'm not exactly sure what you're doing with the regexp or where/how you're adding them so I don't really have a chance of testing these or knowing wth I'm doing myself

but you can try em' and see if they work for you.
$version:
/^\$Version\040\d+\.\d+.$/{{{1
$lock:
/^\$Lock\040EXTENDEDPROTOCOL_FLEXHUB_MULTIPROTOCOL_\w\w\w\w\040Pk=version\d+\.\d+$/{{{2
motd (version?):
/FlexHub\040Beta\040\d\.\d\040svn:\040\d+\040\-\040Made\040by\040Daywalker,\040FlipFlop\040and\040en_dator\./