Skip to content
  • Home
  • About Me
  • Contact
Dowst.Dev
Dowst.Dev
PowerShell Weekly
Dowst.Dev
Dowst.Dev
PowerShell Weekly
  • Home
  • About Me
  • Contact
String CasingStrings

String to uppercase on first letter only

$string.Substring(0,1).ToUpper() + $string.Substring(1,$string.Length-1).ToLower()
Matthew DowstMar 18, 2019Mar 29, 2019
Read More
String CasingStrings

String to lowercase

$string.ToLower()
Matthew DowstMar 18, 2019Mar 29, 2019
Read More
String CasingStrings

String to uppercase

$string.ToUpper()
Matthew DowstMar 18, 2019Mar 29, 2019
Read More
Search StringStrings

Find none ASCII characters

$string = "In mathematics, summation (capital Greek sigma symbol: ∑) is the addition of a sequence of numbers." $string.ToCharArray() | ForEach-Object{ $char = $_ try{$ascii = [byte][char]$char} catch{"$char - None ascii character" } }
Matthew DowstMar 18, 2019
Read More
RegexSearch StringStrings

Find characters between Greater Than and Less Than signs

$string = "LastName, ([samaccountname])" [Regex]::Matches($string, '(?
Matthew DowstMar 18, 2019Mar 29, 2019
Read More
RegexSearch StringStrings

Find characters between Brackets []

$string = "LastName, FirstName ([samaccountname])" [Regex]::Matches($string, '(?
Matthew DowstMar 18, 2019Mar 29, 2019
Read More
RegexSearch StringStrings

Find characters between Parentheses ()

$string = "LastName, FirstName ([samaccountname])" [Regex]::Matches($string, '(?
Matthew DowstMar 18, 2019Mar 29, 2019
Read More
Combine StringsStrings

Combine an array into a string with semicolon separator

$array = 'The','quick','brown','fox','jumps','over','the','lazy','dog.' $array -join(';')
Matthew DowstMar 18, 2019Mar 29, 2019
Read More
Combine StringsStrings

Combine an array into a string with space separator

$array = 'The','quick','brown','fox','jumps','over','the','lazy','dog.' $array -join(' ')
Matthew DowstMar 18, 2019Mar 29, 2019
Read More
Split StringStrings

Split string into an array on spaces

$string = "The quick brown fox jumps over the lazy dog." $string.split()
Matthew DowstMar 18, 2019Mar 29, 2019
Read More
1819202122


My name is Matthew Dowst and I am a father, author, blogger, Microsoft MVP in PowerShell and Azure Hybrid & Migration. And I am an enthusiast of all things PowerShell and DevOps.


Practical Automation with PowerShell
Now available on Amazon and all major book retailers

Categories

  • Active Directory
    • Groups
    • User
  • Automation
  • Azure
    • Intune
  • Collaboration
  • General
    • Array
    • Conditional Statements
    • DateTime
    • Forms/Prompts
    • Fun
    • Math
    • Tools
  • Platforms
    • SharePoint
  • PoshBytes
  • Security
    • Credentials
    • Remoting
  • Storage
    • Files
    • Folders
    • Shares
  • Strings
    • Combine Strings
    • Convert to String
    • Create String
    • Numbers
    • Regex
    • Replace String
    • Search String
    • Split String
    • String Casing
  • Systems
    • Networking
    • Performance
    • Registry
  • Uncategorized

Tags

array azure AzureAutomation conditions credential Credentials date-formats datetime dns else epoch Files Folders form friday-fun guid hardware if int ip-address join logic logs math password performance Permissions port prompt regex registry remote replace rounding search security Shares split string substring time-zones unix User webrequest wmi

Follow Me

  • About Me
  • Contact Me
  • PowerShell Weekly Archive
Copyright © 2026 - Yuki Westa Blog Theme By WP Moose