Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #5862
    erdem_ustu
    Member

    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 characters

    I 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

    #5863
    Yutaka Emura
    Keymaster

    erdem_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 characters

    I 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 1

    Are you happy with this? :-)

    #5866
    erdem_ustu
    Member

    when 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 do

    is there a list of reqular expression with example.
    please help me

    #5867
    erdem_ustu
    Member

    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 regards

    #5868
    Yutaka Emura
    Keymaster

    erdem_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 regards

    Find:
    .(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

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.