method

source

v2_4_6 - Show latest stable - Class: Regexp
source()
public

Returns the original string of the pattern.

/ab+c/ix.source #=> "ab+c"

Note that escape sequences are retained as is.

/\x20\+/.source  #=> "\\x20\\+"