potrero
Mechanical
- Aug 30, 2007
- 516
NX8.0.1 MP1
I have a situation in which I have an NX expression which evaluates to a string, such as the following filename:
partname = "123456.2.10.prt"
My goal is to create another string from this one, pulling out portions of the original string.
For example:
partrevision = "2.10"
or:
partnumber = "123456"
Can anyone advise on how to accomplish this? I think Regular Expressions (regex) would be a good way to do this if possible to implement within the NX Expressions Editor, but I haven't done this before and can't seem to find any useful advice in the NX Documentation.
Thanks in advance.
I have a situation in which I have an NX expression which evaluates to a string, such as the following filename:
partname = "123456.2.10.prt"
My goal is to create another string from this one, pulling out portions of the original string.
For example:
partrevision = "2.10"
or:
partnumber = "123456"
Can anyone advise on how to accomplish this? I think Regular Expressions (regex) would be a good way to do this if possible to implement within the NX Expressions Editor, but I haven't done this before and can't seem to find any useful advice in the NX Documentation.
Thanks in advance.