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.