regular expression in vop and vex

   3165   1   0
User Avatar
Member
66 posts
Joined: May 2016
Offline
Hi everybody,

I dont under stand the meaning of regular experssion in vop and vex such as regex_find,regex_mach, re_find() refindall() etc.
string s =“abc2”;
s@num1=re_findall(“\\\\\d”, s);
s@num2=re_findall(r“\d”, s);
s@num3=re_findall(R“(\d)”, s);
I know \d means digits but what else? does houdini have some specific pages for this regular expression?

Best wishes
User Avatar
Member
1 posts
Joined: March 2016
Offline
For regular expressions you can check this.
https://regexr.com/ [regexr.com]
https://regex101.com/ [regex101.com]
It will help you understand all the patterns and it's meaning.
And your code should be like this, because re_findall returns array data type.
Also not sure about uppercase R may not work.
string s ='abc2';
s@num1=re_findall('\\\\\d', s);
s@num2=re_findall(r'\d', s);
s@num3=re_findall(r'(\d)', s);//
  • Quick Links