diff --git a/Regular-Expressions.md b/Regular-Expressions.md new file mode 100644 index 0000000..b771898 --- /dev/null +++ b/Regular-Expressions.md @@ -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