Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Recent
    • Tags
    • Users
    • Login

    Regular Expressions Search (RegularExprParser)

    Scheduled Pinned Locked Moved SDK Help
    7 Posts 0 Posters 460 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.
    • H Offline
      Helper
      last edited by

      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

      On 14/12/2009 at 06:46, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   10.5 
      Platform:   Windows  ;   
      Language(s) :     C++  ;

      ---------
      Hi there,

      has anyone a good example code for regular expressions search or knows what´s wrong i my code, where nothing happens(never return TRUE (if...)). Here my code:

        
      AutoAlloc <RegularExprParser> regularexpression;   
      String input = "a*";   
      String objectname = "appletree";                              regularexpression->Init(input);   
      LONG pos2 = 0;   
      String word = "";   
                                    if(regularexpression->FindFirst(objectname,RegParseMatch,TRUE,pos2,word))                                   found.push_back(object);      // never step-in   
      

      Thanks,
      coffeemax

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        On 17/12/2009 at 23:42, xxxxxxxx wrote:

        any infos how to use that?

        1 Reply Last reply Reply Quote 0
        • H Offline
          Helper
          last edited by

          THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

          On 18/12/2009 at 01:52, xxxxxxxx wrote:

          I am trying to get my head around as well. I will post back when I know more about it.

          cheers,
          Matthias

          1 Reply Last reply Reply Quote 0
          • H Offline
            Helper
            last edited by

            THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

            On 21/12/2009 at 01:02, xxxxxxxx wrote:

            I had a look at this a few days ago and couldn't get it to work with RegParseMatch, but it worked okay with RegParseContains. I didn't bother posting since I figured you'd probably already tried it and in any case Matthias would be along with the answer 🙂

            But if you haven't tried them, the other options might work for you.

            1 Reply Last reply Reply Quote 0
            • H Offline
              Helper
              last edited by

              THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

              On 21/12/2009 at 02:32, xxxxxxxx wrote:

              Thanks spedler. It was successful when i changed the RegParseMode from RegParseMatch to RegParseContains.

              coffeemax

              1 Reply Last reply Reply Quote 0
              • H Offline
                Helper
                last edited by

                THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

                On 21/12/2009 at 05:31, xxxxxxxx wrote:

                When i have make some tests with the Regular Expression Parser i found out, there was a problem with the RegularExprParser::Init(const String& str) function. If I initialize the Init-function:

                  
                AutoAlloc<RegularExprParser> regularexpression;   
                String txt = "(s) )";   
                regularexpression->Init(txt);    // collapse   
                

                , C4D collapses. Has anyone an idea what´s the problem.

                1 Reply Last reply Reply Quote 0
                • H Offline
                  Helper
                  last edited by

                  THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

                  On 21/12/2009 at 06:07, xxxxxxxx wrote:

                  Originally posted by xxxxxxxx

                  When i have make some tests with the Regular Expression Parser i found out, there was a problem with the RegularExprParser::Init(const String& str) function. If I initialize the Init-function:

                   
                  AutoAlloc<RegularExprParser> regularexpression;   
                  String txt = "(s) )";   
                  regularexpression->Init(txt);    // collapse   
                  

                  , C4D collapses. Has anyone an idea what´s the problem.

                  I can confirm this and have reported it as bug.

                  cheers,
                  Matthias

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post