a亚洲精品_精品国产91乱码一区二区三区_亚洲精品在线免费观看视频_欧美日韩亚洲国产综合_久久久久久久久久久成人_在线区

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

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

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

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 欧美国产一区二区三区 | 欧美中文在线观看 | va在线 | 成人一区二区三区在线观看 | 91精品国产高清久久久久久久久 | 男人的天堂久久 | 日韩不卡中文字幕 | 欧美a级成人淫片免费看 | 国产成人啪精品午夜在线观看 | 国产视频亚洲 | 精品欧美激情在线观看 | 黄色一级毛片在线观看 | 久久精品91久久久久久再现 | 亚洲精品福利视频 | 日本久久艹 | 亚洲毛片 | 性国产xxxx乳高跟 | 亚洲色图偷拍 | 国产精品美女av | 欧美视频三区 | 欧美日韩黄色一级片 | 中文字幕亚洲一区二区va在线 | www精品美女久久久tv | 在线播放国产视频 | 91秦先生艺校小琴 | 国产一二三区在线播放 | 欧美色综合 | 国产精品久久久久影院色老大 | 50人群体交乱视频 | 亚洲va中文字幕 | 日韩成人一区 | av大片在线免费观看 | 午夜日韩 | av网站在线免费观看 | 婷婷毛片 | 中文字幕在线免费视频 | 欧美aaa一级片 | 黄色污污视频在线观看 | 亚洲视频一区二区三区 | 中文在线一区 | 国产免费久久 |