add additional regex property to regex literals containing pattern and flags
add regex tests