• Login
Community
  • Login

Regular Expressions LF∉\h LF∈\v

Scheduled Pinned Locked Moved General Discussion
6 Posts 3 Posters 2.3k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A
    AZJIO AZJIO
    last edited by Feb 21, 2018, 12:29 AM

    [link Regular Expressions](link http://docs.notepad-plus-plus.org/index.php/Regular_Expressions )
    Error for line feed. Look at the description for /h /v

    1 Reply Last reply Reply Quote 0
    • G
      guy038
      last edited by Feb 21, 2018, 8:48 AM

      Hello, @azjio-azjio, and All,

      I confirm that the Line Feed character ( \n ) :

      • Cannot be found with the \h regex, which matches any single horizontal blank character

      • Can be found with the \v regex, which matches any single vertical blank character

      For further information,refer, also, to :

      https://notepad-plus-plus.org/community/topic/15279/unicode-blank-characters-and-the-regexes-h-v-and-s/1

      Cheers,

      guy038

      1 Reply Last reply Reply Quote 0
      • A
        AZJIO AZJIO
        last edited by Feb 21, 2018, 10:03 AM

        The regular expression does not work
        [a-z][\t\v]+[a-z]
        Divide the word with the Enter key and test the regular expression

        With this began reading the reference, while the problem remained

        M 1 Reply Last reply Feb 21, 2018, 12:30 PM Reply Quote 0
        • M
          MAPJe71 @AZJIO AZJIO
          last edited by Feb 21, 2018, 12:30 PM

          @AZJIO-AZJIO did you follow and read the link posted by @guy038 especially his explanation of the difference between \v and [\v]?

          1 Reply Last reply Reply Quote 0
          • A
            AZJIO AZJIO
            last edited by Feb 21, 2018, 3:12 PM

            I read on the diagonal, not understanding with what it is connected, because I just asked to correct the error in the help. If there is a difference in behavior, this should be indicated in the description, so that everyone does not ask the same question again.

            1 Reply Last reply Reply Quote 0
            • M
              MAPJe71
              last edited by Feb 21, 2018, 4:12 PM

              I just asked to correct the error in the help

              AFAIK you just indicated there is an error on the linked page, you didn’t ask for a correction :-)
              Furthermore, there is no error on the page.

              If there is a difference in behavior, this should be indicated in the description, so that everyone does not ask the same question again.

              Agreed, although keep in mind that the difference wasn’t known of by many (AFAIK, well at least not by me) until @guy038 posted his topic .

              1 Reply Last reply Reply Quote 0
              5 out of 6
              • First post
                5/6
                Last post
              The Community of users of the Notepad++ text editor.
              Powered by NodeBB | Contributors