Find characters between single quotes ‘
$string = "'LastName', ([samaccountname])" [Regex]::Matches($string, "(?
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" } }
Find characters between Greater Than and Less Than signs
$string = "LastName, ([samaccountname])" [Regex]::Matches($string, '(?
Find characters between Brackets []
$string = "LastName, FirstName ([samaccountname])" [Regex]::Matches($string, '(?
Find characters between Parentheses ()
$string = "LastName, FirstName ([samaccountname])" [Regex]::Matches($string, '(?