Vorbly Code | JavaScript | JavaScript RegExp

<JavaScript> Reference

VORBLY CODE - CODE YOUR WEBSITE

JAVASCRIPT REFERENCE

JavaScript (or JS) enables users to create interactive webpages and is an essential code to learn for websites and web applications. Most modern websites use JavaScript.

The JavaScript Reference serves as library to define various JS elements such as arrays, date, json, math, operators and regular expressions (regexp) to help you build your website.

arrow&amp;v

JavaScript RegExp

A regular expression is an object that describes a pattern of characters. Regular expressions are used to perform pattern matching and search and replace functions.

For Example:

Valid 10-digit phone number: ^\d{10}$

NAME

DESCRIPTION

CATEGORY

(x|y)

Find any of the alternatives specified

Brackets

[0-9]

Find any character between brackets (number)

Brackets

[^0-9]

Find any character NOT between the brackets (not number)

Brackets

[^abc]

Find any character NOT between brackets

Brackets

[abc]

Find any character between brackets

Brackets

.

Find a single character, except newline or line terminator

Metacharacters

\0

Find a NULL character

Metacharacters

\B

Find a match NOT at the beginning or end of a word

Metacharacters

\D

Find a non-number character

Metacharacters

\S

Find a non-whitespace character

Metacharacters

 

LEARN CODING FOR FREE!

WEB DESIGN & DEVELOPMENT TIPS & ADVICE