Skip to content

Commit 9e598e5

Browse files
committed
Regex: moved and deleted content from the "Patterns and flags".
1. Moved some content that was not pertinent. 2. Deleted a repetition. Closes 962.
1 parent ed86221 commit 9e598e5

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

9-regular-expressions/01-regexp-introduction/article.md

-8
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
11
# Patterns and flags
22

3-
Regular expressions is a powerful way of searching and replacing inside a string.
4-
5-
In JavaScript regular expressions are implemented using objects of a built-in `RegExp` class and integrated with strings.
6-
7-
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.
8-
9-
## Regular expressions
10-
113
A regular expression (also "regexp", or just "reg") consists of a *pattern* and optional *flags*.
124

135
There are two syntaxes to create a regular expression object.

9-regular-expressions/index.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
# Regular expressions
22

33
Regular expressions is a powerful way of doing search and replace in strings.
4+
5+
In JavaScript regular expressions are implemented using objects of a built-in `RegExp` class and integrated with strings.
6+
7+
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.

0 commit comments

Comments
 (0)