regexp (JavaScript 1.2)

Pattern for a regular expression.

Properties & Events

KeyDescriptionAvailability
constructorSpecifies the function that creates the RegExp prototype.
chrome 1.0safari 1.0Firefox 1.0ie 4.0opera 7.0
global Whether or not the "g" flag is used with the regular expression.
chrome 1.0safari 1.0Firefox 1.0ie 4.0opera 7.0
ignorecase Whether or not the "i" flag is used with the regular expression.
chrome 1.0safari 1.0Firefox 1.0ie 5.5opera 7.0
lastindex A read/write integer property that specifies the index at which to start the next match.
chrome 1.0safari 1.0Firefox 1.0ie 4.0opera 7.0
multilineWhether or not the "m" (multiline) flag is used with the regular expression.
chrome 1.0safari 1.0Firefox 1.0ie 5.5opera ??
prototypeReference to the RegExp prototype object.
chrome 1.0safari 1.0Firefox 1.0ie 4.0opera 7.0
source A read-only property that contains the text of the pattern, excluding the forward slashes.
chrome 1.0safari 1.0Firefox 1.0ie 4.0opera 7.0

Result from the Online TryIt-Editor
chrome 1.0safari 1.0Firefox 1.0ie 3.0opera 4.0

Examples having uses of: 'regexp'

1 votes
1k views

Javascript Email Address Validation

JavaScript validation are client side scrips that is used to reduce the server load because all validation are check on client browser. This example validates the input matches a valid e-mail address with a regular expression.