NameRegex
Social Nickname^[A-Za-z0-9_]{6,16}$
Phone Number^\([0-9]{3}\)\s[0-9]{3}-[0-9]{4}$
Password Policy(?=.*[0-9])(?=.*[A-Z])(?=.*[a-z]).{6,20}$
Number^[0-9]+$
Email Address^([0-9a-zA-Z]([-+.\w]*[0-9a-zA-Z])*@([0-9a-zA-Z][-\w]*[0-9a-zA-Z]\.)+[a-zA-Z]{2,9})$
Canada Postal Code^[A-Z]\d[A-Z]\s{1}\d[A-Z]\d$

Hashtag with / support

^(#[a-z0-9]+(?:[-/][a-z0-9]+)*)$

examples:
#hello
#hello/world
#long-tag-here

For case insensitivity
/^(#[a-z0-9]+(?:[-/][a-z0-9]+)*)$/i

Select everything including class on html elements

class\s*=\s*["'][^"']*["']