- #1
Old Guy
- 103
- 1
I need program code that will extract part of a text string. For example, I have the following text string:
'10-Nov-2009_0.91304_Network_N=100_k=6_p=0.02_COMM_NETWORK' and I want to wirte code that will result in a command N=100 (ie, assigning a variable N the value of 100).
I have figured out how I can determine the numeric position of the string using findstr, but how can I get the 100 out? Thanks.
'10-Nov-2009_0.91304_Network_N=100_k=6_p=0.02_COMM_NETWORK' and I want to wirte code that will result in a command N=100 (ie, assigning a variable N the value of 100).
I have figured out how I can determine the numeric position of the string using findstr, but how can I get the 100 out? Thanks.