Saturday, February 12, 2011

Parse and Reparse were Sitting on a Fence

These two expressions do the same thing

s = "this.is.a.string.with.period.delimiters"

Expression 1

wscript.echo Join(Split(s,"."),vbCRLF)

Expression 2

For each word in Split(s, ".")
    wscript.echo word
Next

No comments: