79205450

Date: 2024-11-20 00:24:17
Score: 1.5
Natty:
Report link

Backslash is an escape character in regex.

Heres's how I did it:

$backslashCount = $FilePath | Select-String -Pattern "\\" -AllMatches
$backslashCount.Matches.Length

Select-String documentation:
Select-String (Microsoft.PowerShell.Utility) - PowerShell | Microsoft Learn

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: SurveyLoophole