Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
kb:zapisi:regex_main [2023/08/15 13:54] – [Character classes — d w s and .] milano | kb:zapisi:regex_main [2023/08/15 14:16] – [Character classes — d w s and .] milano | ||
---|---|---|---|
Line 11: | Line 11: | ||
Evo nekih primerima i objašnjenja. | Evo nekih primerima i objašnjenja. | ||
- | ===== Sidra — ^ and $ ===== | + | ===== Sidra — ^ i |
'' | '' | ||
Line 18: | Line 18: | ||
'' | '' | ||
- | ===== Quantifiers | + | ===== Kvantifikatori |
'' | '' | ||
'' | '' | ||
Line 28: | Line 28: | ||
'' | '' | ||
- | ===== OR operator | + | ===== ILI operater |
'' | '' | ||
'' | '' | ||
- | ===== Character classes | + | ===== Klase karaktera |
'' | '' | ||
Line 42: | Line 42: | ||
Pažljivo koristite operator '' | Pažljivo koristite operator '' | ||
- | '' | + | '' |
Na primer, '' | Na primer, '' | ||
'' | '' | ||
- | In order to be taken literally, you must escape the characters | + | Da biste bili shvaćeni bukvalno, morate izbeći znakove |
- | '' | + | '' |
- | Notice that you can match also **non-printable characters** like tabs '' | + | Imajte na umu da možete da uparite i **znakove koji se ne mogu štampati** kao što su tabulatori |
==== Whitespace character: \s ==== | ==== Whitespace character: \s ==== | ||
- | \s matches any whitespace character. It is equivalent to the escape sequences and Unicode | + | \s odgovara bilo kom znaku razmaka. To je ekvivalentno izlaznim sekvencama i Unicode |
- | ^Category^Description| | + | ^Kategorija^Opis| |
- | |\f|The form feed character, \u000C.| | + | |\f|Znak za novi obrazac (FF), \u000C.| |
- | |\n|The newline character, \u000A.| | + | |\n|Znak za novu liniju (LF), \u000A.| |
- | |\r|The carriage return character, \u000D.| | + | |\r|Povratni karakter (CR), \u000D.| |
- | |\t|The tab character, \u0009.| | + | |\t|Tab znak, \u0009.| |
- | |\v|The vertical | + | |\v|Vertikalni |
|\x85|The NEXT LINE (NEL) character, \u0085.| | |\x85|The NEXT LINE (NEL) character, \u0085.| | ||
- | |\p{Z}|Matches all separator characters. This includes the Zs, Zl, and Zp categories.| | + | |\p{Z}|Odgovara svim znakovima za razdvajanje. Ovo uključuje kategorije |
===== Flags ===== | ===== Flags ===== |