麻豆小视频在线观看_中文黄色一级片_久久久成人精品_成片免费观看视频大全_午夜精品久久久久久久99热浪潮_成人一区二区三区四区

首頁 > 應用 > 軟件技巧 > 正文

EditPlus中的正則表達式中英文使用詳解(附常用實例)

2024-07-16 17:45:20
字體:
來源:轉載
供稿:網友

EditPlus中的正則表達式中英文詳解(附常用實例)

/t Tab character.tab符號
/n New line.新的一行(換行符)
. Matches any character.任何字符
| Either expression on its left and right side matches the target string.For example, “a|b” matches “a” and “b”.|符號兩邊的都匹配
[] Any of the enclosed characters may match the target character.For example, “[ab]” matches “a” and “b”. “[0-9]” matches any digit.用[]括起來的都匹配
[^] None of the enclosed characters may match the target character.For example, “[^ab]” matches all character EXCEPT “a” and “b”.“[^0-9]” matches any non-digit character.用[]括起來的都“不匹配”
* Character to the left of asterisk in the expression should match 0 or more times.For example “be*” matches “b”, “be” and “bee”.“*”號左邊的那個字符匹配0次或者更多次
+ Character to the left of plus sign in the expression should match 1 or more times.For example “be+” matches “be” and “bee” but not “b”.“*”號左邊的那個字符匹配1次或者更多次
? Character to the left of question mark in the expression should match 0 or 1 time.For example “be?” matches “b” and “be” but not “bee”.“*”號左邊的那個字符匹配0次或者1次
^ Expression to the right of ^ matches only when it is at the beginning of line.For example “^A” matches an “A” that is only at the beginning of line.只匹配以“^”號右邊的字符為一行開頭的字符。
$ Expression to the left of $ matches only when it is at the end of line.For example “e$” matches an “e” that is only at the end of line.只匹配以“$”號左邊的字符為一行結束的字符。
() Affects evaluation order of expression and also used for tagged expression.標示表達式區域
/ scape character. If you want to use character “/” itself, you should use “//”.轉義字符,如果你想匹配"/"。請使用"//"
/0你使用正則表達式找到的東西

常用EditPlus正則表達式實例

把img標簽的alt去掉
搜索內容:alt="[^src| ]* 注:"|"符號后有個空格
替換內容:alt=""

把帶屬性和樣式的<font>標簽去掉
第一步:把</font>去掉。
搜索內容:</font>
替換內容:不填

第二步:去掉帶屬性和樣式的<font>標簽
搜索內容:<font [^>]*>
替換內容:不填

去掉所有的空行
搜索內容:/n/n
替換內容:/n

以下是針對特殊中文的一些替換

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 九九综合九九 | 性生活视频网站 | 一级在线观看视频 | 久久最新网址 | 色悠悠久久久久 | 成人电影毛片 | 31freehdxxxx欧美 | 在线看免费观看av | 久久久一区二区精品 | 亚洲精品午夜国产va久久成人 | 亚洲成人中文字幕在线 | 黄色网址你懂的 | 精国产品一区二区三区四季综 | 国产午夜精品久久久久久免费视 | hd性videos意大利复古 | 久久精品一区视频 | 中国黄色一级生活片 | 91 免费视频 | 91精品视频网址 | 宅男噜噜噜66一区二区 | 亚洲国产精品高潮呻吟久久 | 色婷婷一区二区三区 | 美国一级毛片片aa久久综合 | 国产高清美女一级毛片久久 | 亚洲第一成av人网站懂色 | 91中文在线观看 | 中文在线观看免费视频 | 欧美成人午夜精品久久久 | 国产免费激情视频 | 久久国产一级片 | 日韩视频在线观看免费 | 99激情视频| 一级毛片在线观看视频 | 日本欧美一区 | 久国产精品视频 | 亚洲第一成网站 | 男人天堂免费 | 大逼逼影院 | 免费看黄色一级片 | 国产88久久久国产精品免费二区 | 欧美精品在线免费观看 |