[Home]
[Search]
[D]
| Returns | Description |
|---|---|
| >=0 | index of match |
| -1 | no match |
| Attribute | Returns |
|---|---|
| global | same as call to exec(string) |
| not global | array of all matches |
| Returns | Description |
|---|---|
| 0 | no match |
| !=0 | match |
| Attribute | Action |
|---|---|
| global | replace all matches |
| not global | replace first match |
| Format | Description |
|---|---|
| & | replace with the match |
| \n | replace with the nth parenthesized match, n is 1..9 |
| \c | replace with char c. |
| Attribute | Action |
|---|---|
| g | global; repeat over the whole input string |
| i | case insensitive |
| m | treat as multiple lines separated by newlines |
| Format | Description |
|---|---|
| $$ | insert $ |
| $& | insert the matched substring |
| $` | insert the string that precedes the match |
| $' | insert the string that following the match |
| $n | replace with the nth parenthesized match, n is 1..9 |
| $nn | replace with the nnth parenthesized match, nn is 01..99 |
| $ | insert $ |