MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame^] | 1 | NAME |
| 2 | ed3 |
| 3 | |
| 4 | DESCRIPTION |
| 5 | Searching is done with: |
| 6 | /hello/ |
| 7 | Find first line in of after current line. |
| 8 | Just // will repeat the search. |
| 9 | |
| 10 | The patterns are regular expressions, where some characters |
| 11 | have a special meaning: |
| 12 | . Match any character. |
| 13 | x* Match any numbers of x (0 or more). |
| 14 | [abc] Match 'a', 'b' or 'c'. |
| 15 | [0-9] Match any digit 0 - 9. |
| 16 | [a-z] Match any lowercase letter. |
| 17 | \x Match 'x' where 'x' can be any character except '(' |
| 18 | and ')'. |
| 19 | |
| 20 | EXAMPLE |
| 21 | s/ab.d/ABCD/ |
| 22 | Substitute any string 'abXd' against 'ABCD' where X can be any |
| 23 | character. |
| 24 | |
| 25 | NOTE |
| 26 | This only half the truth, there is lots more magic in the |
| 27 | regexps. |
| 28 | |
| 29 | SEE ALSO |
| 30 | regexp(E), ed4(LPC) |