Having an issue searching for ] using UltraEdit regex (solved)

Having an issue searching for ] using UltraEdit regex (solved)

8
NewbieNewbie
8

    Dec 13, 2015#1

    I've successfully used this for a long time so I am confused why this is happening. When I search for []] using UltraEdit RegEx it will find two characters. A closing bracket, and whichever character immediately precedes it. I'm not sure why this is happening all of a sudden. I've tried restarting UltraEdit and my PC and looked through the program settings, but nothing changed. Any ideas?


    6,606548
    Grand MasterGrand Master
    6,606548

      Dec 14, 2015#2

      To find ] as literal character with an UltraEdit regular expression search string, you need to escape it. So the search string should be ^]

      You don't need a character set definition using [...] if you just want to find a single character. A character set definition should be used only if at least 2 characters are part of the set.

      []] is an invalid expression as character set is empty and therefore the find behavior is undefined. Correct would be [^]], but the square brackets around ^] are not needed at all.
      Best regards from an UC/UE/UES for Windows user from Austria

      8
      NewbieNewbie
      8

        Dec 14, 2015#3

        Interesting. Thank you very much! :D