Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Editor Find/Replace Regular Expressions

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Editor Find/Replace Regular Expressions

    What commands are allowed to be embedded in the search pattern string for the Editor's Find/Replace function?



    As you can see I figured out how to search for all characters excepting for an excluded character by putting the character in prefixed by a caret (^) and surrounded by square brackets. (Thus the above search will match any non "=" character immediately followed by an occurrence of the "=" character.)

    But I wanted to use some of the matched characters in the replace string and I don't know how to do that. I tried a couple of things but the regular expression syntax being used in the editor isn't one of the ones that I'm familiar with.

    Is there documentation on this somewhere?
    Attached Files

    #2
    Hi KBJ, I'm unfortunately not aware of any docs, but will check what we could suggest and let you know then.

    Comment


      #3
      There's unfortunately not help section I can point you to, however for using regular expressions I would just google case examples like - http://labnol.blogspot.com/2005/08/r...h-regular.html

      Comment


        #4
        I'm familiar with and in the past have used several different types of regular expressions, and if there's one thing that I can conclude about regular expressions, it's that they are not 100% regular.

        Everyone seems to have their own slant. The regular expressions in Grep are different from those in Perl, and those are different from the ones I used in my favorite editor ("FastText") back in 1981 (which was probably based off of Grep).

        Google has 9,570,000 references for "regular expressions". The link you give is for something that's Microsoft-Word specific.

        I was hoping that we could just find out which subset of commands were implemented in this specific "Find/Replace" tool so we could get this documented and useful.

        Is there some way to look up the Find/Replace tool? Who supplied it? Perhaps they have documentation.

        Comment


          #5
          By the way I did try the suggested syntax related to Microsoft Word, and that did not work for NinjaTrader.

          As I said before all regular expression syntaxes are not the same.



          If this had worked, I would have expected the "[^=]" to match any character except "-" (and that did work), and the parentheses should have saved the matched result. Then the replace string of "\1" should have been changed to whatever was matched (this didn't occur), so the net result for the above example would be any non-equal-sign character followed by an equal-sign would be replaced by the exact same string.

          This does not happen.

          Can we find out who made the Find/Replace component?

          Thanks.
          Attached Files

          Comment


            #6
            I looked into further, the editor docs are available if you install the evaluation version of the Activpro syntax editor - http://www.actiprosoftware.com/produ...r/default.aspx

            Comment


              #7
              Originally posted by NinjaTrader_Bertrand View Post
              I looked into further, the editor docs are available if you install the evaluation version of the Activpro syntax editor - http://www.actiprosoftware.com/produ...r/default.aspx
              That's great. Looks like you've got it half done.

              How about if you do the other half (install the evaluation, and look through the editor docs) and post the results for all NinjaTrader users here on the forums, or put it in the help-file/manual?

              Thanks.

              Comment


                #8
                Hello,

                Not sure what the laws/licenses are of posting material that is not designed by us is. Therefor would not want to do this without first contacting actipro. Therefor for now this solution should work for you. If we find others needing the infomation we may look into adding into a future version of the NinjaTrader documentation this information after we consult with them on this. However Actipro is who we license this from for use on our software, for any questions specific to how this works I may suggest contacting Actipro since they would have more information then we would have on this componant unfortunately.

                Will check into this with my product manager and get this added to our suggestion list to add into future versions of NinjaTrader.

                Thank you for much.
                BrettNinjaTrader Product Management

                Comment


                  #9
                  Originally posted by NinjaTrader_Brett View Post
                  Not sure what the laws/licenses are of posting material that is not designed by us is. Therefor would not want to do this without first contacting actipro. Therefor for now this solution should work for you. If we find others needing the infomation we may look into adding into a future version of the NinjaTrader documentation this information after we consult with them on this. However Actipro is who we license this from for use on our software, for any questions specific to how this works I may suggest contacting Actipro since they would have more information then we would have on this componant unfortunately.

                  Will check into this with my product manager and get this added to our suggestion list to add into future versions of NinjaTrader..
                  You've got to be kidding me.

                  You're worried about providing documentation to your users for a component bought from a vendor?

                  How about just asking the vendor if it's OK to tell your users how the component you purchased from them works?

                  Do you think maybe you should ask them if it would be better if you kept this a secret from your users?

                  While you're at it, don't you think you ought to ask ActiPro how they feel about fielding lots of calls from your users, rather than one call from NinjaTrader? (I'll wait before calling them so you have time to check this out, as I don't want to piss off your vendor.)

                  At last count NinjaTrader had 300 or so vendors who sell add-on products. Do you like it when your vendor's customers ask you about a lack of documentation in the vendor's product?

                  I don't understand why you don't just document this.

                  Comment


                    #10
                    Originally posted by KBJ View Post
                    You've got to be kidding me.

                    You're worried about providing documentation to your users for a component bought from a vendor?

                    ..
                    I don't understand why you don't just document this.
                    It would be so THRILLING to have documentation on how to fully use the editor !!!

                    Jon

                    Comment


                      #11
                      Hello,

                      Guys, I'm checking into this with my product manager.
                      BrettNinjaTrader Product Management

                      Comment


                        #12
                        Hello,

                        I discussed this with my product manager.

                        Would like to thank you for the suggestion on adding this to our NinjaTrader documentation. It is given tracking number #823 in our tracking system to possibly add in a future version of the software.

                        Thank you for bringing this to our attention.
                        BrettNinjaTrader Product Management

                        Comment

                        Latest Posts

                        Collapse

                        Topics Statistics Last Post
                        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                        0 responses
                        574 views
                        0 likes
                        Last Post Geovanny Suaza  
                        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                        0 responses
                        333 views
                        1 like
                        Last Post Geovanny Suaza  
                        Started by Mindset, 02-09-2026, 11:44 AM
                        0 responses
                        101 views
                        0 likes
                        Last Post Mindset
                        by Mindset
                         
                        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                        0 responses
                        553 views
                        1 like
                        Last Post Geovanny Suaza  
                        Started by RFrosty, 01-28-2026, 06:49 PM
                        0 responses
                        551 views
                        1 like
                        Last Post RFrosty
                        by RFrosty
                         
                        Working...
                        X