From 9e598e5ba2751f50a1d3fa1e9553fe379cf42fc7 Mon Sep 17 00:00:00 2001 From: luc4leone Date: Mon, 6 May 2019 20:18:33 +0200 Subject: [PATCH] Regex: moved and deleted content from the "Patterns and flags". 1. Moved some content that was not pertinent. 2. Deleted a repetition. Closes 962. --- 9-regular-expressions/01-regexp-introduction/article.md | 8 -------- 9-regular-expressions/index.md | 4 ++++ 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/9-regular-expressions/01-regexp-introduction/article.md b/9-regular-expressions/01-regexp-introduction/article.md index 59775d3c..e69528c5 100644 --- a/9-regular-expressions/01-regexp-introduction/article.md +++ b/9-regular-expressions/01-regexp-introduction/article.md @@ -1,13 +1,5 @@ # Patterns and flags -Regular expressions is a powerful way of searching and replacing inside a string. - -In JavaScript regular expressions are implemented using objects of a built-in `RegExp` class and integrated with strings. - -Please note that regular expressions vary between programming languages. In this tutorial we concentrate on JavaScript. Of course there's a lot in common, but they are a somewhat different in Perl, Ruby, PHP etc. - -## Regular expressions - A regular expression (also "regexp", or just "reg") consists of a *pattern* and optional *flags*. There are two syntaxes to create a regular expression object. diff --git a/9-regular-expressions/index.md b/9-regular-expressions/index.md index ac25aaa6..7499c584 100644 --- a/9-regular-expressions/index.md +++ b/9-regular-expressions/index.md @@ -1,3 +1,7 @@ # Regular expressions Regular expressions is a powerful way of doing search and replace in strings. + +In JavaScript regular expressions are implemented using objects of a built-in `RegExp` class and integrated with strings. + +Please note that regular expressions vary between programming languages. In this tutorial we concentrate on JavaScript. Of course there's a lot in common, but they are a somewhat different in Perl, Ruby, PHP etc.