Artifact eb884c1b0be3d4af25ef426ca32cce4074cc670fcfefbd52ac9b5553ab3d580a:
- File Regex-fun.ps1 — part of check-in [c785c9e93a] at 2018-06-10 13:57:49 on branch trunk — Regex match valid character string (user: Zefram size: 461)
# encoding: ascii # api: powershell # title: Regex fun # description: Regex match valid character string # version: 0.1 # author: Zefram # license: CC0 # x-poshcode-id: 5605 # x-archived: 2015-01-31T20:29:42 # x-published: 2015-11-20T18:25:00 # # #Valid characters $CharsString = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz123456789!@#$%^&*()-=_+[]/\{}|:;'`",.<>?``~" #Testing a' -match "[$([regex]::escape($CharsString))]" > False