JavaScript – RegExp n+ Quantifier
The JavaScript RegExp n+ quantifier matches any string that contains at least one n.
The JavaScript RegExp n+ quantifier matches any string that contains at least one n.
The JavaScript RegExp ^n quantifier matches any string with n at the beginning of it.
The JavaScript RegExp n* quantifier matches any string that contains zero or more occurrences of n.
The JavaScript RegExp n? quantifier matches any string that contains zero or one occurrences of n.
The JavaScript RegExp ?!n quantifier matches any string that is not followed by a specific string n.
The JavaScript RegExp n{X} quantifier matches any string that contains a sequence of X n’s. X must be a number.
The JavaScript RegExp n$ quantifier matches any string with n at the end of it.
The JavaScript RegExp n{X,} quantifier matches any string that contains a sequence of at least X n’s. X must be a number.
The JavaScript RegExp n{X,Y} quantifier matches any string that contains a sequence of X to Y n’s. Both X and Y must be a number.
The JavaScript RegExp constructor Property returns the function that created the RegExp prototype.
The JavaScript RegExp global property returns “true” if the g modifier is set, and “false” if it is not set.
The JavaScript RegExp ignoreCase property returns “true” if the i modifier is set, and “false” if it is not set.
The JavaScript RegExp exec() method tests for a match in a string. If a match is found, it returns a result array, otherwise it returns null.
The JavaScript RegExp lastIndex property specifies the index at which to start the next match, and only works if the g modifier is set.
The JavaScript RegExp multiline property returns “true” if the m modifier is set, and “false” if it is not set.
The JavaScript RegExp source property returns the text of the RegExp pattern.
The JavaScript RegExp test() method tests for a match in a string. If a match is found, it returns “true”, otherwise it returns “false”.
The JavaScript RegExp toString() method returns the string value of the regular expression.
The screen.availHeight property returns the height of the user’s screen in pixels minus any interfaces like the Windows Taskbar or Mac Dock.
The screen.availWidth property returns the width of the user’s screen in pixels minus any interfaces like the Windows Taskbar or Mac Dock.