mirror of
https://github.com/ksherlock/mpw-shell.git
synced 2024-09-27 03:54:51 +00:00
Created Regular Expressions (markdown)
parent
f0d17b8406
commit
aa63788ea2
18
Regular-Expressions.md
Normal file
18
Regular-Expressions.md
Normal file
@ -0,0 +1,18 @@
|
||||
| MPW | Standard | Comments |
|
||||
| --------------- | --------------- | --------------- |
|
||||
| ? | . | Match any character (except return) |
|
||||
| ≈ | .* | Match 0 or more characters |
|
||||
| ∂ | \ | Escape special character |
|
||||
| • | ^ | Match beginning of line |
|
||||
| ∞ | $ | Match end of line |
|
||||
| [...] | [...] | Sets. Case-insensitive unless {CaseSensitive} variable is set to 1. ∂ / \ ' " [ ] require ∂ escaping. - must be first to be a literal character. |
|
||||
| [¬...] | [^...] | Set negation |
|
||||
| + | + | Repeat 1 or more times |
|
||||
| * | * | Repeat 0 or more times |
|
||||
| «*n*» | {*n*} | Repeat *n* times (also «*n*,*n*», «,*n*», «*n*,») |
|
||||
| (...)®*n* | | Capture the expression in variable @*n* (where *n* is 0-9) |
|
||||
| ®*n* | | Match previously captured variable. |
|
||||
|
||||
/ regular expression / - search forward
|
||||
|
||||
\ regular expression \ - search backward
|
Loading…
Reference in New Issue
Block a user