add forward slash delimiters to regex check