No, it'll still work without $().
Quote:
/^\S+(v| $)/i
You miss a delimiter (forward slash).