close
Warning:
Can't synchronize with repository "(default)" (Unsupported version control system "svn": /usr/lib/python2.7/dist-packages/libsvn/_core.so: failed to map segment from shared object: Cannot allocate memory). Look in the Trac log for more information.
- Timestamp:
-
Dec 25, 2009, 11:10:51 PM (16 years ago)
- Author:
-
wade
- Comment:
-
--
Legend:
- Unmodified
- Added
- Removed
- Modified
-
|
v11
|
v12
|
|
| 1 | 1 | [[PageOutline]] |
| 2 | | = Regular Express 正規表示式 = |
| | 2 | = Regular Express 正規表示式,含 vim 用法 = |
| 3 | 3 | == 特殊符號 == |
| 4 | 4 | 需在符號前加上 \ |
| … |
… |
|
| 59 | 59 | }}} |
| 60 | 60 | }}} |
| | 61 | |
| | 62 | |
| | 63 | |
| | 64 | == 變數處理 == |
| | 65 | 將符合規則的字串做為變數使用: |
| | 66 | * example:要將 abc.jpg 改為 abc.txt。 |
| | 67 | * answer:將第二個 \( 與 \) 內所包含的字元做為 \1 的變數,第二個 \( 與 \) 內所包含的字元做為 \2 的變數。 |
| | 68 | {{{ |
| | 69 | :1,$s/\(abc.\)jpg/\1txt/g |
| | 70 | }}} |
| | 71 | |
| | 72 | |