Selecting text by fixed number of chars from actual pos.

Selecting text by fixed number of chars from actual pos.

5
NewbieNewbie
5

    Apr 07, 2008#1

    How do I select a text from actual position to a specific position?

    Example:

    I want selection 1000 chars from actual position to ahead, with [startSelect + key("RIGHT ARROW")] is very slow and with [startSelect + key("DOWN ARROW") + key("RIGHT ARROW")] is more fast, but I want better velocity.

    I am sorry for my English...

    236
    MasterMaster
    236

      Apr 07, 2008#2

      I assume you're using the current version (V14).

      Position the cursor before the first letter. Press Ctrl+F (Find dialog should open). Check the checkbox "Regular expressions" in the lower left of the dialog box. Click on "Advanced" (lower right corner) and select "Perl" regular expressions. Then search for [^ÿ]{1000}.
      (ÿ is chosen here as a character that doesn't occur anywhere in your file)

      I'm not sure about the correct syntax for this inside a script, but I'm sure you'll find examples of regex find operations in this forum.

      HTH,
      Tim

      5
      NewbieNewbie
      5

        Apr 07, 2008#3

        Wow!!!! 8O

        Thanks you!!!

        I will work with this, and I will try to do the code in Script

        119
        Power UserPower User
        119

          Apr 08, 2008#4

          pietzcker wrote:[^ÿ]{1000}
          (ÿ is chosen here as a character that doesn't occur anywhere in your file)
          I really wish that UE provided some documentation about how they implement Perl regexes. It looks like they hard-code the /m modifier ("^" and "$" match at beginning and end of each line) to true and the /s modifier ("." matches newline) to false. I'd like to be able to control the modifiers but that might be too much for most users (who don't actually program in Perl).

          The feature I really want is for "\n" to match a logical newline regardless of the file encoding. (I did file a request, but I'm not holding out much hope.)