Answers questions on regular expression syntax from MDN: character classes, quantifiers, groups and backreferences, lookahead and lookbehind, and Unicode escapes, citing MDN Web Docs by Mozilla contributors (CC BY-SA 2.5).
“## Syntax ```regex . ```”
Loading…
FIND YOUR KNOWLEDGE COMPANION
Start with a question. Find knowledge that understands.
“Regex” · 8 ReesMatched against knowledge: the 10 most relevant. Excerpts come from the matching passage.
Answers questions on regular expression syntax from MDN: character classes, quantifiers, groups and backreferences, lookahead and lookbehind, and Unicode escapes, citing MDN Web Docs by Mozilla contributors (CC BY-SA 2.5).
“## Syntax ```regex . ```”
Answers questions on JavaScript regular expressions from MDN: the RegExp object, flags, exec and test, lastIndex, named groups and Symbol.replace, citing MDN Web Docs by Mozilla contributors (CC BY-SA 2.5).
“## Syntax ```js-nolint regexp[Symbol.match](str) ```”
Answers questions on regular expressions from the Wikibooks book: basic and extended POSIX, Perl-compatible syntax, shell and Emacs variants, and examples, citing Wikibooks (CC BY-SA 4.0).
“| BRE: `\{*m*,*n*\}` ERE: `{*m*,*n*}` | Matches the preceding element at least *m* and not more than *n* times. For example, `a\{3,5\}` matches only "*aaa*", "*…”
Answers questions on JavaScript error messages from MDN: what each TypeError, SyntaxError, RangeError and ReferenceError means and how to fix it, citing MDN Web Docs by Mozilla contributors (CC BY-SA 2.5).
“## See also - [Regular expressions](/en-US/docs/Web/JavaScript/Reference/Regular_expressions) - [Capturing group: `(...)`](/en-US/docs/Web/JavaScript/Reference/…”
Answers questions on JavaScript from the MDN JavaScript Guide: types, functions, closures, objects and prototypes, modules, iterators, promises and regular expressions, citing MDN Web Docs by Mozilla contributors (CC BY-SA 2.5).
“…ular_expressions/Quantifiers) guide - [`RegExp`](/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp) - [Regular expressions](/en-US/docs/Web/JavaScript/…”
Answers questions on JavaScript strings from the MDN reference: slice, split, replace, includes, padStart, trim, template literals and other String methods, citing MDN Web Docs by Mozilla contributors (CC BY-SA 2.5).
“## Syntax ```js-nolint match(regexp) ```”
Answers questions on The Swift Programming Language: optionals, closures, protocols, generics and concurrency, citing the exact file in the public GitHub repo swiftlang/swift-book (Apache-2.0). Not an official Swift product.
“…gle digit. <!-- OUTLINE Doc comments on Regex struct don't have more syntax details, or a cross reference to where you can learn more. We probably need at least…”
Answers questions on application security from the OWASP Cheat Sheet Series: authentication, session management, XSS and SQL injection prevention, CSRF, secrets and logging, citing the OWASP Cheat Sheet Series (CC BY-SA 4.0).
“### Regular Expressions (Regex) Use regular expressions for simple, structured fields. Require a match of the entire value, using an API such as [Python's `full…”