Notepad ++ cire adiresoshin email daga fayil ɗin rubutu

Notepad ++ cire adiresoshin email daga fayil ɗin rubutu

Yadda za a cire adiresoshin email daga fayil ɗin rubutu

Samun fayil, misali haɓaka daga akwatin gidan waya naka, kuma kuna son cire kawai adiresoshin email?

Amfani da Takaddun shaida ++ da sauƙin magana na yau da kullum, shi ke da sauki.

Duba kasa cikakken misali, ko, don taƙaitawa, buɗe fayil ɗinka, yi amfani da regexp ƙasa don samun adiresoshin imel, ƙara ragowar layi kafin da bayan kowane ɗayan, sa'an nan kuma alama alamar da ke dauke da adireshin imel da kuma share alamar da ba a yaye ba.

Notepad ++ regex cire rubutu

Kyau mai sauƙi - amma duba kasa cikakken misali ta yin amfani da wannan mahimmanci regexp daga tattaunawa na Stackoverflow.com akan "Cire imel ɗin daga rubutu ta amfani da notepad ++ da regexp", tare da ƙarin wahayi daga tattaunawa na superuser.com "Yadda za a share duk layi a Notepad ++ sai dai Lines da ke dauke da kalma ina bukatan? ".

(\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}\b)

Farawa tare da fayil - a cikin wannan misali, haɓaka daga adiresoshin "TO" na Outlook 2013 ya aika da imel ɗin imel - zaku iya samun nauyin haruffa, rubutun mawuyaci, adiresoshin imel a kan wannan layi, ...

Mataki na farko shine don buɗe Sauyawar zaɓi, Bincika => Sauya ko Ctrl + H.

Nnotepad ++ na yau da kullum magana

A nan, a cikin Nemo abin da, shigar da ƙasa a cikin layi.

(\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}\b)

A Sauya tare da, shigar da wannan don maye gurbin kowane adireshin imel ɗin ta: layi na rukunin \ n + search string $ 1 + layi na nuni \ n

\n$1\n

Tabbatar bincika maɓallin Rediyo na Regular, kuma danna Sauya Duk.

Duba sakamakon - kowane adireshin imel din yanzu shine a kan sabon layi.

Mataki na gaba shine gano duk wadannan rukunin da ke dauke da adireshin email daya. Bude Marktab a cikin Binciken Bincike. Kwafi wannan bayani kamar yadda ya kasance kafin gano adireshin imel. Tabbatar cewa an duba Kalmomin yau da kullum, tare da zaɓi na Lissafin Alamomin, kuma fara aiki tare da Mark All

A cikin fayil ɗin, duk layi da ke ƙunshe da adiresoshin imel ɗin yanzu an alamar.

A Bincika => Alamar alamar, zaɓi Cire Lines na Lissafi

Kuma wannan! Fayil ɗin ku a yanzu yana ƙunsar adiresoshin imel ba tare da rubutu ba.

A matsayin mataki na ƙarshe, zaku iya cire duplicates don samun jerin adiresoshin imel na musamman.

Cire imel daga rubutu file

Don cire imel daga fayil din rubutu, bude shi ta amfani da Edita ++ edita rubutu, kuma yi amfani da umarnin da ke sama, ta amfani da maganganun yau da kullum, sawa duk imel, zaɓar kawai imel, da kuma kwafin su.

Cire imel daga CSV

Adireshin imel a cikin CSV, kamar na MicrosoftOutlook fitarwa, yayi daidai daidai da na fayil ɗin rubutu na daidaitattu. Bude fayil din CSV tare da editan rubutu na Notepad ++, ya bambanta adreshin imel daya tare da tsari da aka bayyana a sama, da kuma kwafe su.

Notepad ++ kwafin duk matakan regex

Don kwafe duk matakan regex, yi amfani da Marktab a cikin Binciken Doba ++. Ta hanyar sa a nan gaba, za a nuna duk sakamakon da ya dace da regexp, kuma za a iya zaɓa da kuma kofe wannan hanyar.

Cire duplicates a cikin kundin rubutu ++

Notepad ++ tsiri HTML tags

Don cire alamomin HTML a cikin Notepad ++ daga rubutu, amfani da keɓaɓɓen furucin yau da kullum<.*?>|</.*?>, kuma maye gurbin misali tare da sarari. Tabbatar cewa an saka akwatin akwatin magana na yau da kullum a cikin hanyar bincike.

<.*?>|

Binciken ++ cire URLs

A cikin menu mai maye gurbin, mai sauƙi tare da gajeren hanya CTRL + H, yi amfani da wannan bayanan, tare da maganganun yau da kullum kuma dot ya dace da sabon layin da aka bari:

.*?(http\:\/\/www\.[a-zA-Z0-9\.\/\-]+)

Kuma amfani da wannan maye gurbin launi don samun jerin dukkan URLs da aka samo a cikin fayil ɗin:

$1\n

Yadda za a kwafe jerin layi a NotePad ++

Rubutun alama a Notepad ++ za a iya kofe ta amfani da bincike na regex, ta amfani da bincike> alama alama, zaɓin alamar alamar shafi kuma danna alamar duk.

Bayan haka, yi amfani da bincike> alamar shafi> menu da aka sanya alamar litattafai, kuma sakamakon za a iya ƙaddamar a cikin sabon fayil, dauke da kwafin jerin layi.

Yadda za a cire imel daga rubutu a cikin dannawa kaɗan

Don cire imel daga rubutu, kawai shigar da layi na yau da kullum don gano duk adiresoshin imel a cikin fayil ɗin rubutu, misali haɓo duk lambobinka daga Microsoft Outlook.

Bayan haka, gano adiresoshin imel, kuma cire samfurori. Yin amfani da NotePad ++, ana iya yin ta ta bin jagoran mu.

cire adireshin imel ɗin daga Notepad ++ ta amfani da regex

Kara karantawa

Similar articles

Sharhis (7)

Irene Page, 2018-08-19
Simple, clair et bien expliqué, merci beaucoup
Lee Ryan, 2018-08-19
No sabía acerca de estos detalles, por favor haga más
Raymond Mcbride, 2018-08-19
O poveste grozavă, mulțumesc pentru schimbul
Kathryn Baker, 2018-08-19
ที่ทำงานได้ดีสำหรับฉันไม่จำเป็นต้องดูเพิ่มเติมใด ๆ
testkingaws, 2018-11-05
Thank you, author, was very useful for me
George Mauricio Santana Lima, 2019-01-16
THIS TUTORIAL IS AMAZING, SUCH AN USEFUL GUIDE! <3
Kaspars, 2019-01-16
Thank you! This came handy!

Leave a comment