Hello this is my string
Data1 = "value1";
Data2 = "value2";
Data3 = "value3";
in php i am using this regex
preg_match("/\h*(.*?)\h*[=]\h*[\"](.*?)[\"]\h*[;]/mis", $input_line, $output_array);
and get 3 result
Data1 = "value1";
Data1
Value1
...
...
now i want to use regex in c++ visual studio to do like this (what i done in php). i know we can't find
\h*
in c++ regex so please say to me what regex i must use for c++?
c++but you could try the plain space character with the*, or for tabs too possible[ \t]*. See regex101.com/r/zI8vS3/2 and regex101.com/r/zI8vS3/1[[:blank:]]*should be what you are looking for. You can also add your own shorthands withregex_traitsif you want to define\hyourself.