- AuthorPosts
- May 29, 2008 at 4:30 pm #5862erdem_ustuMember
hi,
I have lots of logs file.I want to find/replace but have a lot of criteria.
for example find .doid replace do id
find .dotb_id replace do tb_id
find .doCOLUMN replace .do COLUMN……is it possible to find .do* replace .do *(put one space .do and any words)
Note: * means any words or charactersI found some link (http://www.emeditor.com/modules/newbb/viewtopic.php?topic_id=675&forum=19 ) but I don’t know which howmany kinds of word/characters
please help
May 29, 2008 at 4:45 pm #5863Yutaka EmuraKeymastererdem_ustu wrote:
hi,
I have lots of logs file.I want to find/replace but have a lot of criteria.
for example find .doid replace do id
find .dotb_id replace do tb_id
find .doCOLUMN replace .do COLUMN……is it possible to find .do* replace .do *(put one space .do and any words)
Note: * means any words or charactersI found some link (http://www.emeditor.com/modules/newbb/viewtopic.php?topic_id=675&forum=19 ) but I don’t know which howmany kinds of word/characters
please help
Check “Use Regular Expressions” in the Replace dialog box, and then
Find:
do(w+?)Replace with:
do 1Are you happy with this? :-)
May 30, 2008 at 10:58 am #5866erdem_ustuMemberwhen write find criteria .do(w+?)
found mmenudom,imageDosya..vb
only want to find “.do*” (dot di o and any words)
replace “.do one space word”for example find: /search.doquery=
after replacing /search.do query=
I could not do /Start.do; only doing .do* (* means number,charc,or words) there are dot in front of the dois there a list of reqular expression with example.
please help meMay 30, 2008 at 3:35 pm #5867erdem_ustuMemberI think solved.
if I write .do(w+?) and replace .do 1 it seems ok.is it right?
another problem in this situation
“.jpg-“
“.html-“
“.js-“
“.htm-“
is it possible
“.jpg -“
“.html -“
“.js -“
best regardsMay 30, 2008 at 4:01 pm #5868Yutaka EmuraKeymastererdem_ustu wrote:
I think solved.
if I write .do(w+?) and replace .do 1 it seems ok.is it right?
another problem in this situation
“.jpg-“
“.html-“
“.js-“
“.htm-“
is it possible
“.jpg -“
“.html -“
“.js -“
best regardsFind:
.(w+?)-Replace:
.1 –For examples, please see the Help.
http://www.emeditor.com/help/howto/search/search_regexp_syntax.htm
http://www.emeditor.com/help/faq/search/search_reg_exp_ex.htm - AuthorPosts
- You must be logged in to reply to this topic.