Quantcast
Channel: PowerShell General
Viewing all articles
Browse latest Browse all 10624

can't match "\" at end of string

$
0
0

I have been trying to match the "\" at the end of string and it comes up false

"Scripts\" -match '$\\'      returns False

"Scripts\" -match "\Z\\"   returns False

can someone tell me the right syntax for matching the "\" at the end of a string?

I am using powershell ise v2.0 on XP 32 bit.

thanks,

Ole.


Viewing all articles
Browse latest Browse all 10624

Trending Articles