Quantcast
Channel: PowerShell.org » All Posts
Viewing all articles
Browse latest Browse all 13067

Reply To: Generic PowerShell string tokenizer (work in progress, seeking opinions)

$
0
0

Just noticed what the forums did to some of my quotation marks, and now I can’t edit it. The ugly stuff was supposed to look like this:

Get-StringToken -Delimiter " `t"

versus

Get-StringToken -Delimeter @(" ", "`t")

It also turned two consecutive single quotes into a double quote. How helpful.

By default, the script treats two qualifiers inside a qualified string as a way of embedding a single qualifier in the token
(ie, 'This string has an '' embedded single quote.').
The -NoDoubleQualifier switch disables that behavior, which would return 'This string has an '

Viewing all articles
Browse latest Browse all 13067

Trending Articles