• Merging or Joining every 7 lines in a text file using notepad++

    3
    0 Votes
    3 Posts
    278 Views
    guy038G

    Hello, @robert-baker, @alan-kilborn, and All,

    An other solution could be :

    SEARCH (?-i)\R+(?!EMAIL|\z)

    REPLACE \x20

    This alternate solution does not mind if additional line-break separates each section ;-))

    For instance, the input text :

    EMAIL: swmorton50@gmail.com CALLSIGN: AA4TI NAME: STEPHEN MORTON ADDRESS: 5644 CANTUCCI STREET ADDRESS-CITY: NOKOMIS ADDRESS-STATE-PROVINCE: FL ADDRESS-POSTALCODE: 34275 EMAIL: robertumpleby@tx.rr.com CALLSIGN: AA5AH NAME: ROBERT UMPLEBY ADDRESS: 1209 N WATERVIEW DR ADDRESS-CITY: RICHARDSON ADDRESS-STATE-PROVINCE: TX/DALLAS ADDRESS-POSTALCODE: 75080 EMAIL: aa5au@bellsouth.net CALLSIGN: AA5AU NAME: DON HILL ADDRESS: 2121 SUTHERLAND PLACE ADDRESS-CITY: HARVEY ADDRESS-STATE-PROVINCE: LA ADDRESS-POSTALCODE: 70058 EMAIL: rickmaxey51@yahoo.com CALLSIGN: AA5TL NAME: RICHARD MAXEY, JR. ADDRESS: 19708 MAHOGANY ST ADDRESS-CITY: BEND ADDRESS-STATE-PROVINCE: OR ADDRESS-POSTALCODE: 97702 EMAIL: AA1SU@arrl.net CALLSIGN: AA1SU NAME: PAUL N. GAYET ADDRESS: 11 CHERRY STREET ADDRESS-CITY: ESSEX JUNCTION ADDRESS-STATE-PROVINCE: VT ADDRESS-POSTALCODE: 05452 EMAIL: skeeter_1@yahoo.com CALLSIGN: AA3C NAME: RICHARD PETERS ADDRESS: 945 BEECHWOOD DR. ADDRESS-CITY: MURPHY ADDRESS-STATE-PROVINCE: TX ADDRESS-POSTALCODE: 75094

    would output :

    EMAIL: swmorton50@gmail.com CALLSIGN: AA4TI NAME: STEPHEN MORTON ADDRESS: 5644 CANTUCCI STREET ADDRESS-CITY: NOKOMIS ADDRESS-STATE-PROVINCE: FL ADDRESS-POSTALCODE: 34275 EMAIL: robertumpleby@tx.rr.com CALLSIGN: AA5AH NAME: ROBERT UMPLEBY ADDRESS: 1209 N WATERVIEW DR ADDRESS-CITY: RICHARDSON ADDRESS-STATE-PROVINCE: TX/DALLAS ADDRESS-POSTALCODE: 75080 EMAIL: aa5au@bellsouth.net CALLSIGN: AA5AU NAME: DON HILL ADDRESS: 2121 SUTHERLAND PLACE ADDRESS-CITY: HARVEY ADDRESS-STATE-PROVINCE: LA ADDRESS-POSTALCODE: 70058 EMAIL: rickmaxey51@yahoo.com CALLSIGN: AA5TL NAME: RICHARD MAXEY, JR. ADDRESS: 19708 MAHOGANY ST ADDRESS-CITY: BEND ADDRESS-STATE-PROVINCE: OR ADDRESS-POSTALCODE: 97702 EMAIL: AA1SU@arrl.net CALLSIGN: AA1SU NAME: PAUL N. GAYET ADDRESS: 11 CHERRY STREET ADDRESS-CITY: ESSEX JUNCTION ADDRESS-STATE-PROVINCE: VT ADDRESS-POSTALCODE: 05452 EMAIL: skeeter_1@yahoo.com CALLSIGN: AA3C NAME: RICHARD PETERS ADDRESS: 945 BEECHWOOD DR. ADDRESS-CITY: MURPHY ADDRESS-STATE-PROVINCE: TX ADDRESS-POSTALCODE: 75094

    Best Regards,

    guy038

  • 0 Votes
    5 Posts
    2k Views
    Michael TaylorM

    Found this that explains it:
    http://www.thealarmtech.com/forum/viewtopic.php?f=33&t=107

    Really helps for visualization.

  • Help with the Gmod lua lexer plugin

    1
    0 Votes
    1 Posts
    168 Views
    No one has replied
  • Answer: [Solved]

    2
    0 Votes
    2 Posts
    269 Views
    Alan KilbornA

    @Sid-Jetty

    Wasn’t that already answered in the linked-to thread?
    If you were going to contribute something related, why didn’t you do it in that other thread?
    Your answer really doesn’t add any new information.

  • regex - search and replace - "remember"?

    9
    0 Votes
    9 Posts
    912 Views
    Alan KilbornA

    @Adam-Yik said in regex - search and replace - "remember"?:

    it is very similar to Directory-based system such as windows 10. However, up to 9 files and folders can exist in a directory, and

    There is no such limitation in Windows, and it doesn’t have anything to do with regular expression processing. Please don’t spread misinformation.

  • Help with Regex Search and Replace

    3
    0 Votes
    3 Posts
    339 Views
    rderekpR

    You are my hero! It looks like this fixed my problem, thank you!

  • User defined language - recognize date and time stamp

    6
    0 Votes
    6 Posts
    1k Views
    EkopalypseE

    @Ninon_1977

    first you have to install PythonScript plugin from PluginAdmin.
    Then click Plugins->PythonScript->New Script
    give it a meaningful name and copy the content into the newly created document.

    Then follow the instructions in the script.
    Change the lexername and the regexes in the configuration area.
    Lexername must be exactly the same as shown in the language menu
    and use the regex from @PeterJones

    Something like this

    regexes[(0, (79, 175, 239))] = (r'\d{4}-\d{2}-\d{2} \d{2}:', 0)

    all other regexes from the example can be commented.

    (79, 175, 239) <-- this is the rgb color

    Execute the script via Plugins->Python Script->Scripts->YOUR_SCRIPT
    (needs to be done once per npp start only)

  • Delay when typing

    6
    0 Votes
    6 Posts
    320 Views
    Alan KilbornA

    @Donniel-Collera

    I think maybe @gurikbal-singh is trying to ask you to provide your Debug Info.

    That would be found by going to the ? menu and choosing Debug Info… and then in the resulting box clicking on the link that says “Copy debug info into clipboard”.

  • Autoindent missing?

    14
    1 Votes
    14 Posts
    1k Views
    Jane WhittakerJ

    @PeterJones
    Many thanks for this!

  • 0 Votes
    1 Posts
    113 Views
    No one has replied
  • Encoding says file is UTF8 but it's not

    5
    0 Votes
    5 Posts
    4k Views
    asbyonejjA

    @guy038 said in Encoding says file is UTF8 but it's not:

    UN-tick the option Apply to opened ANSI files in Settings > Preferences… > New Document > Encoding, if the UTF-8 option is ticked

    This was my case. I didn’t know this option. Thank you.

  • How to create Shortcut to open a specific file only?

    6
    0 Votes
    6 Posts
    3k Views
    reemaS inrakluKR

    @Alan-Kilborn Thanks for your reply. Leaving the file open has been my workaround so far. Yes, its my go to file and I would be lost without it :-)

    I will keep in mind your suggestions & tricks and will definitely come in handy.

  • Run MIME tools decoder on multiple files

    7
    0 Votes
    7 Posts
    3k Views
    trespdaT

    @PeterJones My test against a few dozen open files went well. I still got problems with certain characters, but the script run fine. Thanks again.

  • Remove useless Language Folders

    10
    0 Votes
    10 Posts
    1k Views
    PeterJonesP

    @PeterJones said in Remove useless Language Folders:

    It’s exactly what it means, and it’s exactly the opposite of what it means.

    I have issued doc PR#77, which among other things, clarifies the “Make Language menu compact” so it’s understood that combing that option with disabled languages might cause there to be empty-letter menus.

  • Replace string

    14
    0 Votes
    14 Posts
    542 Views
    astrosofistaA

    @Paolo-Serpi, @Alan-Kilborn

    I see. Let’s make sure that the Python plugin is correctly installed. I suppose you installed it with the Plugins > Plugins Admin... menu.

    Now we are going to see if it is working properly. Please click Plugins > Python Script > Show Console. On the bottom of the console there is a text box, please type in the following code

    notepad.new()

    and press Run. A new document should be opened. Got it?

    If it worked, check again Preferences > Editing > Multi-Editing Settings > Enable (Ctrl+Mouse click/selection).

    Try once more time to run the Python script, as described in previous posts.

    Other than these ones, I am running out of ideas.

  • Error!!! Conversão de formato NÃO é salva (PT-br)

    2
    0 Votes
    2 Posts
    308 Views
    EkopalypseE

    Se eu definir o OEM850 como a codificação padrão, após a reinicialização 850, será mostrado, então isso está funcionando para mim.
    Qual versão do Npp você está usando?
    Pode ser encontrado em? menu - é chamado de informações de depuração.

    If I set OEM850 as the default encoding then after restart 850 is shown, so this is working for me.
    Which Npp version are you using?
    Can be found from ? menu - it is called debug-info.

  • Multi-cursor editing

    53
    0 Votes
    53 Posts
    7k Views
    dailD

    @Michael-Vincent

    Personally I haven’t used DoxyIt in years. I wouldnt say it’s not supported, just my interest is quite lacking.

    In light of recent circumstances I find myself with copious amounts of free time currently, so I will make it a point to take a look at your PR soon.

  • aligning tabs on the screen

    17
    0 Votes
    17 Posts
    20k Views
    Mubashir 2018M

    Hiii
    is there anyone to help me
    i have some notepad datas, i need to arrange this data into excel with the help of notepad++
    i attached the source file and final files of screenshots,
    please help me, i lost couple of months for doing this manually.

    please help me…

    [EDIT]
    Screenshots deleted because they contained private data of a bunch of individuals.
    @Mubashir-2018 Please anonymize your sample data.
    [/EDIT]

  • regular expression - why don't the last words change their order?

    14
    0 Votes
    14 Posts
    449 Views
    EkopalypseE

    @Robin-Cruise

    View->Show Symbol->Show All Characters

    But as @Terry-R wrote, it seems that you are changing your requirements and this is something that does not work well with regexes.

    If there is a language barrier here, try using an online translator and posting in your native language and the translated English version.

    What I have written here was translated with DeepL.com

  • How to copy strings?

    8
    0 Votes
    8 Posts
    746 Views
    astrosofistaA

    @Alan-Kilborn said in How to copy strings?:

    I suppose my posted script has “extensibility” going for it, as opposed to the macro solution, that to me seems difficult to extend to even single quotes.

    Yes, though my regex solves OP’s problem, lack of extensibility is one of its drawbacks - Regarding this issue, for the moment I run out of ideas, but don’t give up.

    Also, compared with your PS, my regex has another drawback, as it couldn’t preserve the original position of the caret. What a shame! ha ha

    Have fun!