Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #7095
    jugaor
    Participant

    Hi.
    I found a strange behavior with this regexp:
    “el( |rn)(l+?)(ega|aba|ase)” [OnlyWord]

    It doesn’t match phrases as “el llegaba” or “el llegase”.
    I guess that the subexpression “ega” is blocking the results, but the OnlyWord condition should not be enough?
    (I tried “ega” and even “ga” at the three positions, with the same behavior).

    BTW
    “el( |rn)(l+?)(ega|aba|ase)( |,|;|.|:|!|?|$|_|-|<)" [OnlyWord]
    works as expected.

    I found a new case of the formerly reported issue?
    http://www.emeditor.com/modules/newbb/viewtopic.php?viewmode=flat&topic_id=1009&forum=5

    Thank you very much for your attention,
    jugaor
    (EmEditor 8.04, Windows XP SP3)

    #7304
    Yutaka Emura
    Keymaster

    jugaor wrote:
    Hi.
    I found a strange behavior with this regexp:
    “el( |rn)(l+?)(ega|aba|ase)” [OnlyWord]

    It doesn’t match phrases as “el llegaba” or “el llegase”.
    I guess that the subexpression “ega” is blocking the results, but the OnlyWord condition should not be enough?
    (I tried “ega” and even “ga” at the three positions, with the same behavior).

    BTW
    “el( |rn)(l+?)(ega|aba|ase)( |,|;|.|:|!|?|$|_|-|<)" [OnlyWord]
    works as expected.

    I found a new case of the formerly reported issue?
    http://www.emeditor.com/modules/newbb/viewtopic.php?viewmode=flat&topic_id=1009&forum=5

    Thank you very much for your attention,
    jugaor
    (EmEditor 8.04, Windows XP SP3)

    As I wrote in another thread, please use regular expressions for word boundaries instead:

    The following escape sequences match the boundaries of words:

    < Matches the start of a word.
    > Matches the end of a word.
    b Matches a word boundary (the start or end of a word).
    B Matches only when not at a word boundary.

    I will add thse expressions to the Help. Thank you!

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