Update README-id.md

This commit is contained in:
HendraSetiaji 2021-10-28 21:34:49 +07:00
parent dd4203bb35
commit 8265772ebc

View File

@ -59,7 +59,7 @@ surat dan juga terlalu pendek.
- [Pencocokan Dasar](#1-basic-matchers) - [Pencocokan Dasar](#1-basic-matchers)
- [Karakter Meta](#2-meta-characters) - [Karakter Meta](#2-meta-characters)
- [Titik](#21-the-full-stop) - [Tanda Titik](#21-the-full-stop)
- [Set Karakter](#22-character-sets) - [Set Karakter](#22-character-sets)
- [Set Karakter yang Dinegasikan](#221-negated-character-sets) - [Set Karakter yang Dinegasikan](#221-negated-character-sets)
- [Repetisi](#23-repetitions) - [Repetisi](#23-repetitions)
@ -109,40 +109,40 @@ tidak cocok dengan string `the`.
[Uji Ekspresi reguler](https://regex101.com/r/1paXsy/1) [Uji Ekspresi reguler](https://regex101.com/r/1paXsy/1)
## 2. Meta Characters ## 2. Karakter Meta
Meta characters are the building blocks of regular expressions. Meta Karakter meta adalah blok bangunan ekspresi reguler. Meta
characters do not stand for themselves but instead are interpreted in some karakter tidak berdiri sendiri tetapi sebaliknya ditafsirkan dalam beberapa
special way. Some meta characters have a special meaning and are written inside cara spesial. Beberapa karakter meta memiliki arti khusus dan tertulis di dalamnya
square brackets. The meta characters are as follows: tanda kurung siku. Karakter metanya adalah sebagai berikut:
|Meta character|Description| |Karakter Meat|Deskripsi|
|:----:|----| |:----:|----|
|.|Period matches any single character except a line break.| |.|Titik cocok dengan karakter tunggal apa pun kecuali jeda baris.|
|[ ]|Character class. Matches any character contained between the square brackets.| |[ ]|Kelas karakter. Cocok dengan karakter apa pun yang ada di antara tanda kurung siku.|
|[^ ]|Negated character class. Matches any character that is not contained between the square brackets| |[^ ]|Kelas karakter yang dinegasikan. Cocok dengan karakter apa pun yang tidak ada di antara tanda kurung siku|
|*|Matches 0 or more repetitions of the preceding symbol.| |*|Mencocokkan 0 atau lebih pengulangan dari simbol sebelumnya.|
|+|Matches 1 or more repetitions of the preceding symbol.| |+|Mencocokkan 1 atau lebih pengulangan dari simbol sebelumnya.|
|?|Makes the preceding symbol optional.| |?|Menjadikan simbol sebelumnya opsional.|
|{n,m}|Braces. Matches at least "n" but not more than "m" repetitions of the preceding symbol.| |{n,m}|Braces. Cocok setidaknya "n" tetapi tidak lebih dari "m" pengulangan simbol sebelumnya.|
|(xyz)|Character group. Matches the characters xyz in that exact order.| |(xyz)|Kelompok karakter. Mencocokkan karakter xyz dalam urutan yang tepat.|
|||Alternation. Matches either the characters before or the characters after the symbol.| |||AAlternasi. Cocok dengan karakter sebelum atau karakter setelah simbol.|
|&#92;|Escapes the next character. This allows you to match reserved characters <code>[ ] ( ) { } . * + ? ^ $ \ &#124;</code>| |&#92;|Escape karakter berikutnya. Ini memungkinkan Anda untuk mencocokkan karakter yang dipesan <code>[ ] ( ) { } . * + ? ^ $ \ &#124;</code>|
|^|Matches the beginning of the input.| |^|Cocok dengan awal input.|
|$|Matches the end of the input.| |$|Cocok dengan akhir input.|
## 2.1 The Full Stop ## 2.1 Tanda Titik
The full stop `.` is the simplest example of a meta character. The meta character `.` Tanda titik `.` adalah contoh paling sederhana dari karakter meta. Karakter meta `.`
matches any single character. It will not match return or newline characters. cocok dengan karakter tunggal apa pun. Itu tidak akan cocok dengan karakter kembali atau baris baru.
For example, the regular expression `.ar` means: any character, followed by the Misalnya, ekspresi reguler `.ar` berarti: karakter apa pun, diikuti oleh
letter `a`, followed by the letter `r`. huruf `a`, diikuti dengan huruf `r`.
<pre> <pre>
".ar" => The <a href="#learn-regex"><strong>car</strong></a> <a href="#learn-regex"><strong>par</strong></a>ked in the <a href="#learn-regex"><strong>gar</strong></a>age. ".ar" => The <a href="#learn-regex"><strong>car</strong></a> <a href="#learn-regex"><strong>par</strong></a>ked in the <a href="#learn-regex"><strong>gar</strong></a>age.
</pre> </pre>
[Test the regular expression](https://regex101.com/r/xc9GkU/1) [Uji Ekspresi Reguler](https://regex101.com/r/xc9GkU/1)
## 2.2 Character Sets ## 2.2 Character Sets