Difference between revisions of "Ekspresi Regular"

From OnnoWiki
Jump to navigation Jump to search
(New page: Panduan belajar ekspresi regular Akan diterjemahkan dari : <code>http://www.regular-expressions.info/</code> = Jalur Pintas = == Text Patterns and Matches == == Literal Characters == == C...)
 
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
Panduan belajar ekspresi regular
+
Panduan belajar ekspresi regular<br/>
Akan diterjemahkan dari : <code>http://www.regular-expressions.info/</code>
 
  
= Jalur Pintas =
+
= Pengantar =
 +
= Quick Start =
 
== Text Patterns and Matches ==
 
== Text Patterns and Matches ==
 
== Literal Characters ==
 
== Literal Characters ==
Line 16: Line 16:
 
== Unicode Properties==
 
== Unicode Properties==
 
== Lookaround==
 
== Lookaround==
 +
= Mari Bermain ! =
 +
 +
= Quick Tips =
 +
 +
Text Mentah:
 +
        1399 | 121112100653_artifact.txt
 +
        1452 | 121112103236_artifact.txt
 +
        1478 | 121112101109_artifact.txt
 +
 +
Tantangan:
 +
Temukan pola semua karakter sebelum angka <code>1211</code>
 +
 +
Jawab:
 +
^\s*[0-9]*\s|\s
 +
 +
= Referensi =
 +
* <code>http://www.regular-expressions.info/</code>

Latest revision as of 09:42, 10 May 2013

Panduan belajar ekspresi regular

Pengantar

Quick Start

Text Patterns and Matches

Literal Characters

Character Classes or Character Sets

Shorthand Character Classes

Non-Printable Characters

The Dot Matches (Almost) Any Character

Anchors

Alternation

Repetition

Greedy and Lazy Repetition

Grouping and Backreferences

Unicode Properties

Lookaround

Mari Bermain !

Quick Tips

Text Mentah:

       1399 | 121112100653_artifact.txt
       1452 | 121112103236_artifact.txt
       1478 | 121112101109_artifact.txt

Tantangan: Temukan pola semua karakter sebelum angka 1211

Jawab:

^\s*[0-9]*\s|\s

Referensi