Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Translate 1. Basic Matcher / Pencocokan Dasar
1. Basic Matcher ~ Pencocokan Dasar
  • Loading branch information
h3nset committed Oct 24, 2021
commit 1f0489787161d5751fbc5442d442473eeeb7a775
23 changes: 11 additions & 12 deletions translations/README-id.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,29 +86,28 @@ surat dan juga terlalu pendek.
- [Multiline](#53-multiline)
- [Greedy vs Lazy Matching](#6-greedy-vs-lazy-matching)

## 1. Basic Matchers

A regular expression is just a pattern of characters that we use to perform a
search in a text. For example, the regular expression `the` means: the letter
`t`, followed by the letter `h`, followed by the letter `e`.
## 1. Pencocokan Dasar

Ekspresi reguler hanyalah pola karakter yang kita gunakan untuk melakukan
pencarian dalam teks. Misalnya, ekspresi reguler `the` berarti: huruf
`t`, diikuti huruf `h`, diikuti huruf `e`.
<pre>
"the" => The fat cat sat on <a href="#learn-regex"><strong>the</strong></a> mat.
</pre>

[Test the regular expression](https://regex101.com/r/dmRygT/1)
[Uji Ekspresi reguler](https://regex101.com/r/dmRygT/1)

The regular expression `123` matches the string `123`. The regular expression is
matched against an input string by comparing each character in the regular
expression to each character in the input string, one after another. Regular
expressions are normally case-sensitive so the regular expression `The` would
not match the string `the`.
Ekspresi reguler `123` cocok dengan string `123`. Ekspresi reguler adalah
dicocokkan dengan string input dengan membandingkan setiap karakter di reguler
ekspresi ke setiap karakter dalam string input, satu demi satu. Reguler
ekspresi biasanya peka huruf besar/kecil sehingga ekspresi reguler `The` akan
tidak cocok dengan string `the`.

<pre>
"The" => <a href="#learn-regex"><strong>The</strong></a> fat cat sat on the mat.
</pre>

[Test the regular expression](https://regex101.com/r/1paXsy/1)
[Uji Ekspresi reguler](https://regex101.com/r/1paXsy/1)

## 2. Meta Characters

Expand Down