Skip to content

Opening book details…

About this document

JavaScript and PHP Regular Expressions Guide by Weimao Ke is a document available to read on EtoBox.

Regular expressions (regex) allow complex text matching and are supported in JavaScript and PHP. The syntax uses symbols like periods, brackets, and pipes to define patterns to match text. Common regex functions include search(), replace(), match(), and test() in JavaScript and preg_match(), preg_replace() in PHP. Quantifiers like *, + and {} are used to specify occurrence counts in patterns. Regex can match characters, words, numbers, whitespace and more using special characters like \w, \d, \s.

Author
Weimao Ke
Language
EN