//String to Parse
string $textToParse = "FACE_NORMAL 5: -1.000000 -1.000000 0.000000";
//Remove all info except for face ID and X Y Z data
string $normalInfo = substituteAllString($textToParse, "FACE_NORMAL ", "");
//Separate Face ID
string $faceID = match "^[^\:]*" $normalInfo
;
//Remove Face ID from string
$normalInfo = substituteAllString($normalInfo, ($faceID + ": "), "");
// Here's where I get in trouble
//
//
string $normalX = match "[^ ]*" $normalInfo
;
string $normalZ = match "[^ ]+$" $normalInfo
;
string $normalInfo = match "[.\-0-9]+( )[.\-0-9]+" $normalInfo
;;
string $normalY = match "[^ ]+$" $normalInfo
;
print ($faceID + " " + $normalX + " " + $normalY + " " + $normalZ);
//--------------------------------------------------------------------------
I really just need to separate the Face Numner from the XYZ values. This gets close, but the Y value gets messed up.
I've been all over the regEx pages and it's like reading an alien language to me.
any help is much appreciated!