Community
    • Login

    What RegEx Engine/Flavor?

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    17 Posts 5 Posters 8.7k 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.
    • Claudia FrankC
      Claudia Frank @Layarion
      last edited by

      @Layarion

      npp is using boost regex engine and documentation is available here.

      Matches could be either addressed with \1 or $1 etc…

      Cheers
      Claudia

      1 Reply Last reply Reply Quote 2
      • Scott SumnerS
        Scott Sumner @Layarion
        last edited by

        @Layarion

        @Claudia-Frank only gave you part of the story. Here’s some more good stuff, about the replace syntax of the Boost regex engine. Unfortunately, none of this is super-great user-level documentation.

        Claudia FrankC 1 Reply Last reply Reply Quote 1
        • Claudia FrankC
          Claudia Frank @Scott Sumner
          last edited by Claudia Frank

          @Scott-Sumner

          :-D ok, maybe then we should start from here :-D

          Cheers
          Claudia

          Scott SumnerS 1 Reply Last reply Reply Quote 0
          • Scott SumnerS
            Scott Sumner @Claudia Frank
            last edited by Scott Sumner

            @Claudia-Frank

            Well, you and I can, but none of this is a great help to someone that just wants to get a feel for the syntax of the N++ regular expression search/replace syntax/capabilities. I’m trying to think like a newbie here… And we’re just parroting @guy038 who, since time began for this forum, has pointed people to your original link and mine.

            Again, none of it is great user-level documentation. What’s here (probably what the OP mentioned without directly citing) is sort of a good start…but still definitely lacking. Nothing is perfect, but there is a feeling of “adequate” most times…and none of this quite feels adequate. :-(

            I really think @guy038 should author-up something awesome about this topic and put it up somewhere! :-D

            Claudia FrankC 1 Reply Last reply Reply Quote 1
            • Claudia FrankC
              Claudia Frank @Scott Sumner
              last edited by Claudia Frank

              @Scott-Sumner

              I really think @guy038 should author-up something awesome about this topic and put it up somewhere! :-D

              Hehe - me too :-D

              To be honest, I would think that such topic would be ideal for the blog section.
              There are a lot of good posts which aren’t easy to find and if the blog section could be
              used, strictly, for that then it would be a lot easier to point to those already answered questions (@Layarion - no offense, as said hard to find)
              but I guess this will be an idealistic dream only.

              Cheers
              Claudia

              1 Reply Last reply Reply Quote 1
              • guy038G
                guy038
                last edited by guy038

                Hi, @claudia-frank, @scott-sumner, @peterjones, and All,

                Ah, brilliant idea Claudia, indeed !! It will be easier to everyone to quickly get some basic information on Notepad++ ;-)) And thanks to you and Peter, for your first contributions to this new project !

                So, I intend, myself, to add such a post, relative to the regex documentation. Now, as these new kind of post ( that I would call a “N++ Community” post ! ), two main questions comes to my mind :

                • What should be the general appearance of these posts ?

                • How to update these posts, except the obvious way of adding your own post(s) ?


                Regarding the first point, I, personally, do an intensive use of the bold style, in my posts, that some people may not feel very elegant ! So, I suppose that I should switch to the italics style of writing, which is more neutral than the bold one !

                Regarding the second point, I’m thinking about two solutions, for updating my own future posts, on the Blog section :

                • If you’re already a moderator of our site, I allow you to add/delete data or complete my posts, to improve the global comprehension of an article ! And, particularly, if it remains some technical mistakes/ approximations or if I used bad English/American expressions, much too far from fluent language !

                • If you’re are a regular user, just send me an e-mail and I will correct/add/delete the concerned parts of the post(s), as soon as possible !

                For instance, I do think that the present list of regex sites, in my usual regex documentation adding, could be increased ;-))


                So, before adding my first post to the FAQ Desk, what’s your feelings about it ?

                Cheers,

                guy038

                Claudia FrankC 1 Reply Last reply Reply Quote 3
                • Claudia FrankC
                  Claudia Frank @guy038
                  last edited by

                  Hi Guy,

                  So, I intend, myself, to add such a post, relative to the regex documentation.

                  very much appreciated :-)

                  What should be the general appearance of these posts ?

                  To be honest, I think diversity is a benefit - I wouldn’t try to change the style someone is writing.
                  If rules are to strict, then it might be that one doesn’t post content just because of that.
                  I feel comfortable if a blog post would use the FAQ Desk prefix in the title but on the
                  other side it is the blog section so …

                  How to update these posts, except the obvious way of adding your own post(s) ?

                  That is indeed an issue because what you write today might be outdated tomorrow and then
                  blog post could become an source of confusion. Not sure how to handle this - maybe allowing
                  editing afterwards?

                  One question from me - as you are a moderator, could you move the non-blog posts to,
                  let’s say general section? :-)

                  Cheers
                  Claudia

                  1 Reply Last reply Reply Quote 1
                  • Scott SumnerS
                    Scott Sumner
                    last edited by

                    @guy038 said:

                    What should be the general appearance of these posts ?

                    I second what @Claudia-Frank said. It would be silly to change your own individual style of writing for this purpose.

                    How to update these posts, except the obvious way of adding your own post(s) ?

                    It’s my feeling that the FAQ Desk postings should not get a long series of follow-up posts. It would make it harder to read in order to get correct information out. If the base posting is wrong in some aspect, it should simply be corrected by a moderator.

                    However, moderator power is limited to the chosen few. You happen to be one. And that’s fine with me. :-)

                    I have a correction to one of the FAQ Desk postings already; I’ll email you. :-D

                    Maybe you just signed up for a lot of new work!

                    1 Reply Last reply Reply Quote 3
                    • PeterJonesP
                      PeterJones
                      last edited by

                      @guy038,

                      I dislike rigid rules for style, so I’m definitely not going to enforce style, other than possibly “FAQ Desk” prefix.

                      I agree that emailing you (or other moderator) to make a change to an existing post makes more sense than endless followups.

                      1 Reply Last reply Reply Quote 2
                      • guy038G
                        guy038
                        last edited by guy038

                        Hi @claudia-frank, @peterjones, @scott-sumner and All,

                        Claudia, you said :

                        One question from me - as you are a moderator, could you move the non-blog posts to,
                        let’s say general section? :-)

                        Well, I don’t think I’m able to move a thread from one section to another one ! However, if a thread is composed of a single post, I could, may be, delete it, in the Blog section and re-create it in an other section ? Of course, we would need to ask the OP, in order to do such a move !

                        But, why about asking @don-ho to create a new general section, called References, with the hope that the already FAQ Desk posts could be moved in that new section ? This would be the neat solution, won’t it be ?!

                        Best Regards,

                        guy038

                        Claudia FrankC 1 Reply Last reply Reply Quote 2
                        • Claudia FrankC
                          Claudia Frank @guy038
                          last edited by

                          @guy038

                          Yes, why not sounds good to me.

                          Cheers
                          Claudia

                          1 Reply Last reply Reply Quote 0
                          • guy038G
                            guy038
                            last edited by guy038

                            Hi, @claudia-frank, @peterjones, @scott-sumner and All,

                            I sent an e-mail to @don-ho, four hours ago, about my/our suggestion ;-) So, just wait and see … !!

                            Cheers,

                            guy038

                            1 Reply Last reply Reply Quote 1
                            • guy038G
                              guy038
                              last edited by guy038

                              Hello, @Don-ho, @claudia-frank, @peterjones, @scott-sumner and All

                              I’m very pleased to announce that Don Ho took my suggestion, in consideration :-)) You have certainly noticed, by now, the new FAQ section, on our Node BB forum ;-))

                              So, many thanks, Don for that initiative ! Have you some spare time to move the 8 FAQ Desk: threads, in the new FAQ section, with their original order ? Just know that I don’t mind doing this task, instead !

                              If so, I will use this method :

                              • I will backup, first, all these posts, on my laptop ( Always do backups !! )

                              • Then I will create new posts, in the FAQ section, and paste the contents of each post, respecting their initial order

                              • Once this part done, I will delete these posts, in the Blog section ( Only moderators will be able to still see these delete posts, in the Blog section, afterwards ! )

                              Let me know …

                              Cheers,

                              guy038

                              1 Reply Last reply Reply Quote 2
                              • guy038G
                                guy038
                                last edited by guy038

                                Hi, @claudia-frank, @peterjones, @scott-sumner, @dail, @mapje71, @jim-dailey,

                                By e-mail, I request @don-ho to allow you to fill up the FAQ section of our Node BB site, as Don, initially, just gave me rights to do so :-))

                                Please, let me a couple of hours, for moving the existing Fat Desk: posts to the new FAQ section ! Presently, in France, it’s 5h30 am, about ( I’m was sleeping, with TV on ! ) So…, I’m still sleepy !

                                Cheers,

                                guy038

                                1 Reply Last reply Reply Quote 1
                                • guy038G
                                  guy038
                                  last edited by

                                  This post is deleted!
                                  1 Reply Last reply Reply Quote 0
                                  • guy038G
                                    guy038
                                    last edited by

                                    Hi, @claudia-frank, @peterjones, @scott-sumner, @dail, @mapje71, @jim-dailey,

                                    Done ! It was easier, than I first thought, to move these FAQ Desk: posts in the new FAQ section. A move topic command was available ! So, no need to save contents and re-create these posts ;-))

                                    I also, verified that your previous links to any FAQ Desk: post, has been preserved by the “move”. So, everything is fine !

                                    We just have, now, to go on filling up that new FAQ section, with pertinent posts !

                                    Best Regards,

                                    guy038

                                    1 Reply Last reply Reply Quote 3
                                    • First post
                                      Last post
                                    The Community of users of the Notepad++ text editor.
                                    Powered by NodeBB | Contributors