- Edited by TheCaptainTJ Monday, July 27, 2015 2:16 AM
Hi TJ,
You are looking for something similar to this. Mix of the search and replace.
Powershell to search multiple words in a text file:
http://www.codeproject.com/Questions/614468/powershell-to-search-multiple-words-in-a-text-file
How Can I Use Windows PowerShell to Replace Characters in a Text File?
You need to load the file contents in a $variable and then loop it through until everything changes.
Initially make everything LowerCase, then search and capitalize.
(Get-Content logfile.log).ToLower() | Set-Content logfile.log
First consider "what is a pronoun"?
If you want TitleCase the just set Title case. This has noting to do with pronouns.
$text=Get-Content test.txt
[cultureinfo]::CurrentCulture.TextInfo.ToTitleCase($text)
First consider "what is a pronoun"?
If you want TitleCase the just set Title case. This has noting to do with pronouns.
$text=Get-Content test.txt
[cultureinfo]::CurrentCulture.TextInfo.ToTitleCase($text)
Not if you use pronouns. Pronouns are smart.