• run macro headlessly on specified file

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    guy038G

    Hello Cybersquir,

    Why don’t you simply use the Find in Files dialog, with a suitable regular expression ? Of course, all your concerned files should be located in a same directory !

    IMPORTANT : As you intend to change many files, simultaneously, may I suggest you to do a copy of this directory, as a backup, first ?

    Now, open the Find in Files dialog ( CTRL + SHIFT + F )

    Choose the absolute path of the folder, containing all your files

    Possibly, filter with one or several specific extension(s)

    Set the Regular expression search mode

    Check/uncheck the other options, as needed

    Then, for instance :

    To remove the first 5 lines of every file, of this folder, use :

    SEARCH \A(?:.*\R){5}

    REPLACE Nothing

    To change some consecutive tabulation characters with a comma, use :

    SEARCH \t+

    REPLACE ,

    And so on…

    Best Regards,

    guy038

  • Copy Regular Expression Search Results to Clipboard

    Locked
    5
    0 Votes
    5 Posts
    30k Views
    guy038G

    Hello Robert and Janet,

    Seemingly, as you seem comfortable with regular expressions, you could easily extract the matched strings with a simple regex ?

    For instance, let’s suppose the simple list of people of an enterprise, below :

    Occupation Age Title Name Forename --------------------------------------------- Technician 50 Mr SMITH John Secretary 25 Miss BROWN Amy Manager 40 Mrs HARPER Edith ....... .. ... ...... .....

    and that you would like to do some statistics, depending on the age and/or the title of these persons. Then, you would need, ( may be for confidentiality ! ) to extract, ONLY, the second and third columns of that list. If so :

    Copy this list in an new tab of N++

    Perform the S/R, below, in Regular expression search mode :

    SEARCH .*?(\d+ +\w+).*

    REPLACE \1

    If, in addition, you would prefer to delete any line, that does NOT match the regex, use, instead the S/R below :

    SEARCH .*?(\d+ +\w+).*|^.*\R

    REPLACE \1

    You’ll only get the strings matched by the regex, below :

    50 Mr 25 Miss 40 Mrs

    Note :

    If the regex can’t be found, the first part of the alternative is not matched ( so, the group \1 doesn’t exist ) but the second part of the alternative is, obviously, always matched, as it matches an entire line, with its EOL character(s)

    Best Regards,

    guy038

  • Make list of names clickable?

    3
    0 Votes
    3 Posts
    4k Views
    GreeberetG

    @guy038 Thankyou ,that worked!

    Anyway to hide the skeleton code?

    sorry been trying to reply with proper code block for the past 2 hours but can’t,keep getting:
    Post content was flagged as spam by Akismet.com

  • How to jump out on brackets/quotation/braces

    Locked
    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Files changed - "Yes to all" or "No to all"

    3
    0 Votes
    3 Posts
    3k Views
    Craig HindallC

    Please add this feature. This honestly is the only feature to make NPP perfect for me :)

  • File null

    3
    0 Votes
    3 Posts
    5k Views
    Scott SumnerS

    It is important to make backups of your important files.

  • Recover or fix corrupted .txt file

    Locked
    1
    0 Votes
    1 Posts
    5k Views
    No one has replied
  • Search and replace crash on large files

    Locked
    2
    0 Votes
    2 Posts
    4k Views
    dailD

    This seems to be a good indication of which plugin…

    Fault Module Name: LocationNavigate.dll

  • What version to download

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    Gary and Ellie FieldG

    All versions after 6.8.2 have unfixed bugs.

  • cannot find help files anywhere

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Change the default encoding for notepad++

    Locked
    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Show character code

    Locked
    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Splitting files?

    Locked
    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Problem with Launch In Firefox (with x64 Firefox)

    Locked
    2
    0 Votes
    2 Posts
    5k Views
    Franco PetitF

    Hi.

    Problem Solved.

    Found here : https://unacatarsisdetransfiguracion.wordpress.com/2007/11/04/how-to-open-a-file-in-opera-from-notepad/

    Solution : I edit the Windows Registry to add firefox.exe (x64) in “app Paths” key.
    reg.exe add “HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\firefox.exe” /ve /d “%programfiles%\mozilla firefox\firefox.exe” /f

    I think it was old path, firefox x86.

    Bye :)

  • How do I correctly import Smarty as a language?

    Locked
    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • secure pad does not install

    Locked
    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • NUL character in notepad++

    Locked
    1
    0 Votes
    1 Posts
    3k Views
    No one has replied
  • Language Call Tip (API)

    Locked
    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Help required defining new language

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Can Notepad++ start batchfiles from within the program?

    Locked
    3
    0 Votes
    3 Posts
    2k Views
    Ruud BaltissenR

    Thank you very much!