• Find quotes and backslash

    Locked
    7
    0 Votes
    7 Posts
    3k 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
    10k Views
    George FanG

    That works, thank you so much Scott :-)

  • 0 Votes
    2 Posts
    1k 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
    129k 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
    1k Views
    rinku singhR

    @Amy-Stewart try run as administrator npp then import

  • nnCron syntax highlights not working

    Locked
    5
    0 Votes
    5 Posts
    909 Views
    Alex NemoA

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

  • Regular expression

    Locked
    2
    1 Votes
    2 Posts
    814 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
    2k 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
    7k 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
    3k Views
    pouemesP

    thanks scott

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

    Locked
    3
    1 Votes
    3 Posts
    923 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
    4k 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

  • Creating a Macro

    Locked
    2
    0 Votes
    2 Posts
    879 Views
    Terry RT

    @Gustavo-Garcia
    The regex (regular expression) for finding and marking those lines would be, using the Find function (with bookmark line also ticked)
    Find What:^\$
    Use Search mode as ‘regular expression’ and tick ‘wrap around’.

    If you did that then you can then use the Search, bookmark submenu to cut or copy these lines to another tab.

    Now a macro is in essence just the steps you take (above) but with first selecting Macro, Start recording. Then you’d type in the regex (as shown above), by first selecting the Mark function, just as you would if using Mark normally. You need to complete by pressing ‘Mark All’, then Close. Remember that once you have completed these steps you would then select Macro, Stop recording. At this point the steps have been recorded, but not yet saved. You then need to select Macro and Save Recorded Macro, give it a name. I would then exit Notepad and re-enter to have it written to an XML file in the Notepad++ environment.

    You will be able to run it again and again by selecting it from the Macro menu.

    Terry

    In my test the macro I created in shortcuts.xml file was:
    <Macro name=“$@start” Ctrl=“no” Alt=“no” Shift=“no” Key=“0”>
    <Action type=“3” message=“1700” wParam=“0” lParam=“0” sParam=“” />
    <Action type=“3” message=“1601” wParam=“0” lParam=“0” sParam=“^$” />
    <Action type=“3” message=“1625” wParam=“0” lParam=“2” sParam=“” />
    <Action type=“3” message=“1702” wParam=“0” lParam=“786” sParam=“” />
    <Action type=“3” message=“1701” wParam=“0” lParam=“1615” sParam=“” />
    </Macro>

    Some of the information can be rather hard to understand, and it’s even harder to edit once created, so if you don’t get it right first time, you will likely need to delete that macro and start again.

    This file can be in several places, for me on Windows 7 it is %appdata%\notepad++. Be careful with opening this file using Notepad++ as it gets written to if required upon exiting Notepad++.

  • Comparing autosave and backup options

    Locked
    1
    0 Votes
    1 Posts
    575 Views
    No one has replied
  • Notepad++ Not Responding

    Locked
    4
    0 Votes
    4 Posts
    5k Views
    chcgC

    There is a known performance issue with 7.5.9, see https://notepad-plus-plus.org/community/topic/16468/notepad-7-5-9-release/21
    Is this the behaviour you observe?