diff --git a/EDSEditorGUI/InsertObjects.cs b/EDSEditorGUI/InsertObjects.cs index 52d7509..72f2bd6 100644 --- a/EDSEditorGUI/InsertObjects.cs +++ b/EDSEditorGUI/InsertObjects.cs @@ -159,7 +159,7 @@ private bool Verify(bool InitiallyDisableIfError = false) int j = 1; foreach (ODentry od in srcObjects.Values) { - String numpattern = @"(\w*\d+\Z)"; + String numpattern = @"(\d+\Z)"; string newname; string[] words = Regex.Split(od.parameter_name, numpattern); @@ -235,7 +235,7 @@ private void Button_create_Click(object sender, EventArgs e) UInt16 newIndex = (UInt16)(od.Index + o); ODentry newObject = od.Clone(); - String pattern = @"(\w*\d+\Z)"; + String pattern = @"(\d+\Z)"; string[] words = Regex.Split(od.parameter_name, pattern); // MatchCollection nummatches = System.Text.RegularExpressions.Regex.Matches(od.parameter_name, numpattern);