Regular Expressions Search (RegularExprParser)
-
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-inThanks,
coffeemax -
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?
-
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 -
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.
-
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
-
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.
-
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