Josh King 1/8/2020

PowerShell's Secret Wildcard

Read Original

The article details a specific, lesser-known issue in PowerShell where using the -like operator with strings containing square brackets can cause 'invalid wildcard pattern' errors. It explains why this happens, how the author discovered it while matching text between systems, and provides context on PowerShell's wildcard behavior beyond just the asterisk (*) and question mark (?).

PowerShell's Secret Wildcard

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week