Extracting variables from a string

2006-04-18 Thread Ed
How would I get the various elements out of a string of known format. A previous post about a similar topic approaches a solution but I need help with the regular expression to pass to the m function. Here's an example of a string: net user cknotts somepassword /add /active:yes /expires:never /com

Re: Extracting variables from a string

2006-04-18 Thread Joshua Colson
On Tue, 2006-04-18 at 11:20 -0600, Ed wrote: > How would I get the various elements out of a string of known format. > A previous post about a similar topic approaches a solution but I need > help with the regular expression to pass to the m function. > > Here's an example of a string: > net user

Re: Extracting variables from a string

2006-04-18 Thread John W. Krahn
Ed wrote: > How would I get the various elements out of a string of known format. > A previous post about a similar topic approaches a solution but I need > help with the regular expression to pass to the m function. > > Here's an example of a string: > net user cknotts somepassword /add /active:y

Re: Extracting variables from a string

2006-04-18 Thread John W. Krahn
John W. Krahn wrote: > Ed wrote: >>How would I get the various elements out of a string of known format. >>A previous post about a similar topic approaches a solution but I need >>help with the regular expression to pass to the m function. >> >>Here's an example of a string: >>net user cknotts some