I don't think it can be done in a single re for a variable-length
string, because you're looking for two different things, one being the
individual components, and one being a split. I think if you run
Benchmark over two split statements, you'll find an insignificant speed
difference over any re complex enough to perform the task.
lee
MJG wrote:
I'm in need of the RegEx users.
In the Terminal server environment, printer mapping creates a long
string.
Client/workstation///printserver/printer,winspool,ne01:
I need to parse this information out without doing a dozen splits if at
all possible.
The outcome I need is:
1). Each element, client,workstation, etc
2). Client/workstation///printserver/printer
3). Winspool,ne01:
Can this be done with an all inclusive RegEx?
Thanks