double whitespace as terminator in "findstr"
Hi All(long time lurker, first time poster)
Sorry if this has been addressed but is there a way to use two whitespaces as the terminator in a findstr.
Eg. To extract 123456 from: "...Header1 1wr2s34d5h6 Header2 789 :10 Header3..."
The following seems to work, [findstr $variable Header1 7 He]
however I need to use the double whitespace as the demiliter as it possible that "He" could appear in the text that follows Header1 which would cut the text short) and actual header name that follows header doesn't can also change.
I have tried using a single whitespace as the delimiter which terminates on hte first single whispace:
[findstr $variable Header1 7 { }] = "1wr2s34d5h6 Header2 789"
Adding a second space between the braces doesn't work and simply returns everything up to the end of the string (as does using {" "}.
Any ideas would be much appreciated.
Cheers
Chad