• Regex to replace second value with first value in XML

    Locked
    3
    1 Votes
    3 Posts
    753 Views
    Ben HumpertB

    @Scott-Sumner That works perfectly. Thank you very much! I now see how wrong I was with my approach ;)

    00 Required\ is the directory the files are stored in(side the zip file) but after extraction / installation they don’t need to be in 00 Required\ since this is just for keeping the zip archive clean.

  • Npp Snippets plug in and plug in manager

    9
    0 Votes
    9 Posts
    4k Views
    OverlordBRO

    I have the Npp Snippets installed OK on my Notepad++ 7.6 (32 bits)

    My structure is:

    The directory:
    “**C:\Users\YOUR_USER\AppData\Local\Notepad++\plugins\NppSnippets**”
    has the file:
    NppSnippets.dll

    The directory:
    “**C:\Users\YOUR_USER\AppData\Local\Notepad++\plugins\NppSnippets\NppSnippets**”
    has the files:
    Languages.sql
    NppSnippets.sql
    Template.sqlite

    Backup your files,
    specially this last 3 (Languages.sql, NppSnippets.sql and Template.sqlite) before puting into the second directory.

    PS: yes, the second directory has NppSnippets twice (first level has the DLL, second level has the config files)

  • Notepad++ v7.5.9 (32-bit): Exception/Access violation, disable plugins

    Locked
    1
    0 Votes
    1 Posts
    466 Views
    No one has replied
  • Find quotes and backslash

    Locked
    7
    0 Votes
    7 Posts
    2k Views
    Mária CsabaiM

    Dear Friends,
    with the specified search criteria, userid=“(NewPC\User\Maya|Computer\Home|XP\Admin)”
    I could replace all users. There were only 21 variations and I could find it and type it.

    Thanks again for everyone!

  • 0 Votes
    3 Posts
    9k Views
    George FanG

    That works, thank you so much Scott :-)

  • 0 Votes
    2 Posts
    901 Views
    edsel42E

    CORRECTION – The problem discussed above occurs in BOTH the Administrator and Standard User accounts.

    How to fix???

  • How to change cursor from horizontal back to vertical?

    Locked
    3
    1 Votes
    3 Posts
    119k Views
    Sinbad AlexandrosS

    Thank you. I didn’t realized I ever hit the insert key at all. I have never actually used it ever before.

  • SVN download of NOTEPAD++ source

    Locked
    7
    2 Votes
    7 Posts
    2k Views
    David Shuman235D

    Thanks to all; backleveling to TortoiseSVN 1.10.2 solved the problem.

  • Import of Toolbuckit Plugin

    4
    0 Votes
    4 Posts
    984 Views
    rinku singhR

    @Amy-Stewart try run as administrator npp then import

  • nnCron syntax highlights not working

    Locked
    5
    0 Votes
    5 Posts
    855 Views
    Alex NemoA

    It’s perfectly supported, no need to bother with definition.

  • Regular expression

    Locked
    2
    1 Votes
    2 Posts
    773 Views
    Terry RT

    @adelinefiu
    You were very close. Just change the * for a +. The + is greedy and it will try to grab as many characters as possible up to the end of the line.

    Suggest read the FAQ, it has some good links. Also rexegg.com has a table outlining the meaning on the * and +.

    Terry

  • Silent Install switches

    Locked
    3
    0 Votes
    3 Posts
    3k Views
    Mr. GrayM

    Thank you for the pormpt reply. Sure enough the /S being capital made the difference.

  • How to reload functionList.xml

    Locked
    6
    0 Votes
    6 Posts
    1k Views
    Horace BischoffH

    I found it, it was here:

    C:\Users<username>\AppData\Roaming\Notepad++\functionList.xml

    Thank you!

  • help please, extract columns

    Locked
    11
    0 Votes
    11 Posts
    2k Views
    guy038G

    Hi, @neagal, @Terry-R, @scott-sumner and All,

    About a possible space char, before the ms string, you can delete it, to get a coherent field, with the regex S/R :

    SEARCH (?-i)(?<=\d)\x20(?=ms)

    REPLACE Leave EMPTY

    Now, if we use lazy quantifiers, the Terry’s regex S/R, with a line-break between each block, turns to :

    SEARCH (?-s)^(.+?\x20)(.+?)\x20(.+?)\x20(.+?)\x20(.+?)\x20(.+?)\x20(.+)(\R)

    REPLACE \1\2\8\1\3\8\1\4\8\1\5\8\1\6\8\1\7\8\8

    Eventually, if necessary, you can move back to the #### ms syntax, with a space between, with the regex S/R :

    SEARCH ms$

    REPLACE \x20$0

    Best Regards,

    guy038

  • locked tabs feture missing in npp ( or launch npp as new procces )

    Locked
    3
    0 Votes
    3 Posts
    2k Views
    Scott SumnerS

    This seems to have been made an issue here .

  • How to open a path in Windows Explorer?

    8
    0 Votes
    8 Posts
    6k Views
    Mark CreagerM

    Thanks, @PeterJones . You are correct, I could map it, found it at no 78 on my list - I only have version 7.4.1 available to install. Appreciate the help from everybody.

  • random sentence

    Locked
    6
    0 Votes
    6 Posts
    2k Views
    pouemesP

    thanks scott

  • When was $(SYS.var) added to notepad++

    Locked
    3
    1 Votes
    3 Posts
    874 Views
    Scott SumnerS

    @PeterJones

    I’m guessing that when those docs were originally created, Notepad++ and NppExec were more “tightly coupled” so that some documentation was written with “blurry lines” between the two.

  • SQL quote color syntax issue

    7
    0 Votes
    7 Posts
    3k Views
    Emmanuel GorandE

    Thanks.

    Unfortunately I have nothing but User Defined Language is that drop-down…

    Maybe something is missing with the plugin (located in C:\Program Files\Notepad++\plugins\PoorMansTSqlFormatterNppPlugin).

  • In a single line with Regular expression

    Locked
    7
    0 Votes
    7 Posts
    2k Views
    guy038G

    Hello, @ALISSAbry, @gurikbal-singh, @cipher-1024 and All,

    Ahrrrrrhh ! You’re perfectly right, @cipher-1024 : my regex does not work, if no extra blank lines exist :-((

    I first had found a correct regex. However, as I also wanted to delete possible pure blank lines, I tried to improve my regex against a text containing some blank lines

    But I had not tested it again, with a simple text, without extra blank lines. My bad !

    So a correct regex could be :

    SEARCH (\R){2,}|(?<!=)\r\n(?!=)

    REPLACE ?1\1:\x20

    Notes :

    Only, the second alternative have changed (?<!=)\r\n(?!=). It will replace any line-break, not preceded and not followed with an equal sign =. In other words, only the line breaks located between two data lines

    Note that we must replace the \R syntax with the \r\n ( or with \n if you’re working with Unix files ! ) Why ? Just because \R represents \r\n, but in order to match an overall regex, \R may match only \r or \n

    For instance, if you try to match the regex (?<!=)\R(?!=) at the end of the sentence …YEScrlf, it would grab only the \r part of the line break, before \n. Indeed, in that case, the \r character is, both, not preceded with an = sign ( as it is the letter S) and not followed with an = sign ( as it is the \n symbol )

    Cheers,

    guy038