Skip to content

Commit e67ac5d

Browse files
loichuziishaned
authored andcommitted
French translation (ziishaned#59)
* created file for translation * Added french link * Intro translated * Intro translated * §1 * §2 * Titles translated * §2.1 * Fixed tick issue in title star * Fixed tick issue in title star * §2.2 * Fixed multilignes link * Organized language choice * §2.2.1 * 2.3 => 2.3.1 * §2.3.2 * §2.3.3 * §2.7 * 2.4 => 2.7 * 2.8.1 * 2.8.2 => 4 * 4.2 => 4.3 * 4.4 * changed 'Recherche globale' to 'Correspondance globale' * 5.1 * 5 * 5.1 * 5.3 * FINISHED git commit -am 5.3git commit -am 5.3git commit -am 5.3 FUCK YEAH git commit -am 5.3git commit -am 5.3git commit -am 5.3! :DDD * corrected typos * changed modèle for schéma * corrected typo * corrected typo * corrected typo * corrected typo * corrected typo * corrected typo * corrected typo * corrected typo * corrected typo * corrected typo
1 parent 7ddb3f6 commit e67ac5d

File tree

5 files changed

+486
-13
lines changed

5 files changed

+486
-13
lines changed

README-cn.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@
66
## 翻译:
77

88
* [English](README.md)
9-
* [Spanish](README-es.md)
9+
* [Español](README-es.md)
10+
* [Français](README-fr.md)
1011
* [中文版](README-cn.md)
1112
* [日本語](README-ja.md)
1213

1314
## 什么是正则表达式?
14-
15+
1516
> 正则表达式是一组由字母和符号组成的特殊文本, 它可以用来从文本中找出满足你想要的格式的句子.
1617
1718

@@ -69,7 +70,7 @@
6970
例如: 一个正则表达式 `the`, 它表示一个规则: 由字母`t`开始,接着是`h`,再接着是`e`.
7071

7172
<pre>
72-
"the" => The fat cat sat on <a href="#learn-regex"><strong>the</strong></a> mat.
73+
"the" => The fat cat sat on <a href="#learn-regex"><strong>the</strong></a> mat.
7374
</pre>
7475

7576
[在线练习](https://regex101.com/r/dmRygT/1)
@@ -106,7 +107,7 @@
106107

107108
## 2.1 点运算符 `.`
108109

109-
`.`是元字符中最简单的例子.
110+
`.`是元字符中最简单的例子.
110111
`.`匹配任意单个字符, 但不匹配换行符.
111112
例如, 表达式`.ar`匹配一个任意字符后面跟着是`a``r`的字符串.
112113

@@ -152,7 +153,7 @@
152153

153154
## 2.3 重复次数
154155

155-
后面跟着元字符 `+`, `*` or `?` 的, 用来指定匹配子模式的次数.
156+
后面跟着元字符 `+`, `*` or `?` 的, 用来指定匹配子模式的次数.
156157
这些元字符在不同的情况下有着不同的意思.
157158

158159
### 2.3.1 `*`
@@ -218,7 +219,7 @@
218219
我们可以省略第二个参数.
219220
例如, `[0-9]{2,}` 匹配至少两位 0~9 的数字.
220221

221-
如果逗号也省略掉则表示重复固定的次数.
222+
如果逗号也省略掉则表示重复固定的次数.
222223
例如, `[0-9]{3}` 匹配3位数字
223224

224225
<pre>
@@ -353,7 +354,7 @@
353354
`?=...` 前置约束(存在), 表示第一部分表达式必须跟在 `?=...`定义的表达式之后.
354355

355356
返回结果只瞒住第一部分表达式.
356-
定义一个前置约束(存在)要使用 `()`. 在括号内部使用一个问号和等号: `(?=...)`.
357+
定义一个前置约束(存在)要使用 `()`. 在括号内部使用一个问号和等号: `(?=...)`.
357358

358359
前置约束的内容写在括号中的等号后面.
359360
例如, 表达式 `[T|t]he(?=\sfat)` 匹配 `The``the`, 在括号中我们又定义了前置约束(存在) `(?=\sfat)` ,即 `The``the` 后面紧跟着 `(空格)fat`.
@@ -367,7 +368,7 @@
367368
### 4.2 `?!...` 前置约束-排除
368369

369370
前置约束-排除 `?!` 用于筛选所有匹配结果, 筛选条件为 其后不跟随着定义的格式
370-
`前置约束-排除` 定义和 `前置约束(存在)` 一样, 区别就是 `=` 替换成 `!` 也就是 `(?!...)`.
371+
`前置约束-排除` 定义和 `前置约束(存在)` 一样, 区别就是 `=` 替换成 `!` 也就是 `(?!...)`.
371372

372373
表达式 `[T|t]he(?!\sfat)` 匹配 `The``the`, 且其后不跟着 `(空格)fat`.
373374

@@ -429,7 +430,7 @@
429430

430431
### 5.2 全局搜索 (Global search)
431432

432-
修饰符 `g` 常用语执行一个全局搜索匹配, 即(不仅仅返回第一个匹配的, 而是返回全部).
433+
修饰符 `g` 常用语执行一个全局搜索匹配, 即(不仅仅返回第一个匹配的, 而是返回全部).
433434
例如, 表达式 `/.(at)/g` 表示搜索 任意字符(除了换行) + `at`, 并返回全部结果.
434435

435436
<pre>
@@ -446,7 +447,7 @@
446447

447448
### 5.3 多行修饰符 (Multiline)
448449

449-
多行修饰符 `m` 常用语执行一个多行匹配.
450+
多行修饰符 `m` 常用语执行一个多行匹配.
450451

451452
像之前介绍的 `(^,$)` 用于检查格式是否是在待检测字符串的开头或结尾. 但我们如果想要它在每行的开头和结尾生效, 我们需要用到多行修饰符 `m`.
452453

README-es.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
## Translations:
77

88
* [English](README.md)
9-
* [Español](README-es.md)
9+
* [Español](README-es.md)
10+
* [Français](README-fr.md)
1011
* [中文版](README-cn.md)
1112
* [日本語](README-ja.md)
1213

0 commit comments

Comments
 (0)