Menu

Bug: Character limit in find/replace?????

2009-04-24
2012-11-13
  • Matt Espinoza

    Matt Espinoza - 2009-04-24

    First off, I love this program! I work in Scala Infochannel and like to manually replace lines of code when doing kiosk programs for tedious work that would take forever to do in the gui. Sometimes the lines of code I need to find/replace are very long and I notice that there is a limit to how long of a line you can find/replace.

    Is this a bug?

    For example:

    This line of code:
    Button(Wipe("Dissolve", Duration(500), Direction(90), Wait(Off)), Normal(Clip(1604, 0, "homepage\new_homepage_layout\Homepage_NU_BTN_CVB_17.png", Face(On, Pen(2)), Update(Normal), Operation(On, ChromaKey($ffffff, Feather(0))))), Select(Clip(1607, 0, "homepage\new_homepage_layout\Homepage_NU_BTS_CVB_16.png", Face(On, Pen(2)), Update(Normal), Operation(On, ChromaKey($ffffff, Feather(0)))), Goto("chambermember_landingpage")));

    turns into this truncated version once you press "find"

    Button(Wipe("Dissolve", Duration(500), Direction(90), Wait(Off)), Normal(Clip(1604, 0, "homepage\new_homepage_layout\Homepage_NU_BTN_CVB_17.png", Face(On, Pen(2)), Update(Normal), Operation(On, ChromaKey($ffffff, Feather(0))))), Select(Clip(1607, 0, "homepag

    I appreciate any feedback on this. Thanks

    -Matt

     
    • Fool4UAnyway

      Fool4UAnyway - 2009-04-24

      You might (want to) use regular expression mode to "skip" a lot of various character strings to shorten the expression used.

      For instance, you could use [^,]*, to simply skip all text before and including the next comma. You could repeat this "code" in your expression.

      Another "obvious" code for skipping would be scanning for parentheses:
      [^\)]*\)

      But be aware: there may be nested parentheses, as opposed to the comma's code.

      Search for regular expression and you may find out more tricks.

       
      • Fool4UAnyway

        Fool4UAnyway - 2009-04-24

        What might be obvious as well: do use identifiers to find keyword in the lines you want to delete.

        ^KeywordAtStartOfLine
        ...
        AnyKeywordInTheLine
        ...
        ;$

         
MongoDB Logo MongoDB