-- Start
Assume that you want to end the English periods (.(.), Is it easy, huh, in emeditorCTRL + HCall upReplace
Dialog box, inFindEnter an English period (.) inReplaceEnter Chinese periods (.), ClickReplace al lThat's it. We pressCTRL + zUndo the replacement we just replaced, and then selectReplaceIn the dialog boxUse Regular ExpressionsAgain, click it elegantly.Replace
Al lA miracle occurs. All the words in the file are replaced with periods. This is not what we want. Why is this happening? Because the dot (.) has special meaning in a regular expression, it can represent any character. We call a character with special significance in a regular expression like a dotMetacharacter)The Fuzzy Matching capability of regular expressions is achieved only when they are available.
Congratulations, you have learned the first metacharacter. We will add it to our toolbox. Don't worry. You will soon learn more metacharacters, by then you will reach a new height.
Metacharacters |
Name |
Matching object |
. |
Dot) |
Any character |
---For more information, see:Regular Expressions
--Shengming: reprinted, please indicate the source
-- Last updated on 2012-04-21
-- Written by shangbo on 2012-04-18
-- End