sampath meka

sampath meka

  • NA
  • 94
  • 31.2k

Regular Expression for string formation

Oct 20 2014 5:26 AM
Hello All,
 
             This is sampath, i have one query for string formation  from the strings provided.I was thinking whether this can be achieved through regular expression. Kindly help me in this regard.
 
string str1 = "Declare Local variable "<var>" of type "<datatype>" and initialize with "<value>"" ;
string str2 = "Declare Local variable b_test of type bool and initialize with 10";
 
Need to extract the values <> to same word in str2. 
 
When i pass two aruguments for a function and function should return the output has  below mentioned:
 
bool b_test =10; 
 
 
kindly  help me in this regard...
 
 
 
Thanks
Sampath 

Answers (2)