2017-09-03 122 views
0

下面我有記事本+線:notepad ++在這種情況下如何使用正則表達式?

555,555,,,,,,,,,,,,,,,,,,,,,,,,,Imported 3/19/17 ::: * My Contacts,Mobile,90902030 
555,555,,,,,,,,,,,,,,,,,,,,,,,,,Imported 3/19/17 ::: * My Contacts,Mobile,66000832 
555,555,,,,,,,,,,,,,,,,,,,,,,,,,Imported 3/19/17 ::: * My Contacts,Mobile,66553325 
555,555,,,,,,,,,,,,,,,,,,,,,,,,,Imported 3/19/17 ::: * My Contacts,Mobile,98781234 
555,555,,,,,,,,,,,,,,,,,,,,,,,,,Imported 3/19/17 ::: * My Contacts,Mobile,55596899 
555,555,,,,,,,,,,,,,,,,,,,,,,,,,Imported 3/19/17 ::: * My Contacts,Mobile,97370880 
555,555,,,,,,,,,,,,,,,,,,,,,,,,,Imported 3/19/17 ::: * My Contacts,Mobile,50224422 
555,555,,,,,,,,,,,,,,,,,,,,,,,,,Imported 3/19/17 ::: * My Contacts,Mobile,66208481 
555,555,,,,,,,,,,,,,,,,,,,,,,,,,Imported 3/19/17 ::: * My Contacts,Mobile,66164442 
555,555,,,,,,,,,,,,,,,,,,,,,,,,,Imported 3/19/17 ::: * My Contacts,Mobile,99226738 
555,555,,,,,,,,,,,,,,,,,,,,,,,,,Imported 3/19/17 ::: * My Contacts,Mobile,90036615 
555,555,,,,,,,,,,,,,,,,,,,,,,,,,Imported 3/19/17 ::: * My Contacts,Mobile,97141492 
555,555,,,,,,,,,,,,,,,,,,,,,,,,,Imported 3/19/17 ::: * My Contacts,Mobile,69040710 
555,555,,,,,,,,,,,,,,,,,,,,,,,,,Imported 3/19/17 ::: * My Contacts,Mobile,60401013 
555,555,,,,,,,,,,,,,,,,,,,,,,,,,Imported 3/19/17 ::: * My Contacts,Mobile,97818846 

我想右後添加+965「手機」,所以這將是我的聯繫人,手機,+ 96590902030等。

該怎麼做?我嘗試了失敗的嘗試。

謝謝, 關於。

+0

經過俺們。 –

回答

1

你不需要正則表達式來實現你的目的。

在Notepad ++中替換,點擊Ctrl + H打開Replace菜單。

然後簡單地做一個替換Mobile,Mobile,+965

Find: Mobile, 

Replace: Mobile,+965 
0

使用Regex

第1步:打開Notepad++,按按Ctrl + ˚F

第2步:現在,裏面Find類型:\w*Mobile,

第3步:並點擊Find All in Opened Documents對於搜索結果。

- :搜索RESULE容納正則表達式: -

enter image description here

第4步:現在按按Ctrl + ^h,裏面Replace With類型:Mobile,+965

第5步:現在,點擊Replace All

輸出:

enter image description here



使用Find and Replace

步驟1:打開Notepad++,按Ctrl鍵 + ħ

步驟2:現在,內部Find類型:Mobile,

步驟3:而且,內部Replace With類型:Mobile,+965

第4步:現在,點擊Replace All


輸出:

之前更換

enter image description here

後點擊Replace All

enter image description here

相關問題