JavaScript » RegExp » source

Syntax:
object.source

This is a read-only property containing the source of the regular expression: i.e. everything except the forward slashes and any flags. The source property cannot be changed directly, however calling the compile method does alter it. For example, with the regular expression rexp = /[^aeiou\s]{2}/g the value of the source property would be [^aeiou\s]{2}.