Yes, my post was to do with the delimiters and switches which is not actually explained anywhere, so it's not clear what the format is - the expression content can of course be changed to suit.
In custom user and thread fields for example, modifiers cannot be used and the start and end / must be omitted: ^[a-zA-Z0-9 _-]+$