RegEx Id

Something I missed for a long time: a way to validate a relation id. I put some source references into it to show where these values come from ;)