Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #6095
    feili
    Participant

    Hello,

    I need to remove all the elements in an xml file. For example, the string:

    …in the presence of a transesterification catalyst

    should look like this:

    … in the presence of a transesterification catalyst

    I tried using this RegEx with emeditor (cf. below), but it does not work. This RegEx works with others editors such as Texpad.

    Search :
    (.*)

    Replace:
    1

    What do I need to do to make it work with emeditor?

    Many thanks for your help

    #6096
    Yutaka Emura
    Keymaster

    feili wrote:
    Hello,

    I need to remove all the … elements in an xml file. For example, the string:

    …in the presence of a transesterification catalyst

    should look like this:

    … in the presence of a transesterification catalyst

    I tried using this RegEx with emeditor (cf. below), but it does not work. This RegEx works with others editors such as Texpad.

    Search :
    (.*)

    Replace:
    1

    What do I need to do to make it work with emeditor?

    Many thanks for your help

    must be removed before ( and ).

    (.*)

    should work.

    #6098
    feili
    Participant

    Hello Yutaka,

    Unfortunately, it seems to be too greedy when there are several elements and it spills over the 1st one.
    Can I control this behavior?

    “Saitenhalters 22 durch die beiden Löcher 23 im Holz 3 und anschließend durch die beiden Löcher 24 des Befestigungsplättchens 21 gesteckt, dann umgebogen und verdreht. attache de cordiervalidatedL’attache de cordier,”

    Many thanks
    feili

    #6099
    Yutaka Emura
    Keymaster

    Use non-greedy one.

    (.*?)

    See http://www.emeditor.com/help/howto/search/search_regexp_syntax.htm for more information.

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