[Solved] create a regular expression of a specific sentence [closed]


If you’re just asking for a way to parse the variable bits from this kind of text, it’s quite easy:

See here: http://tinyurl.com/qjdaj9w

var exp = new Regex(@"angle\(Vector\((.*?),(.*?)\),Vector\((.*?),(.*?)\),(.*?),(.*?)\)");

var match = exp.Match("angle(Vector(JointA,jointB),Vector(JointA,jointB),minValue,maxValue)");


var jointA1 = match.Groups[0];
var jointB1 = match.Groups[1];
var jointA2 = match.Groups[2];
var jointB2 = match.Groups[3];
var max     = match.Groups[4];
var min     = match.Groups[5];

1

solved create a regular expression of a specific sentence [closed]