Skip to content

Instantly share code, notes, and snippets.

@IISResetMe
Created June 6, 2019 11:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IISResetMe/8d9a14a15cc98362b26450391f7cc555 to your computer and use it in GitHub Desktop.
Save IISResetMe/8d9a14a15cc98362b26450391f7cc555 to your computer and use it in GitHub Desktop.
using module PSKoans
[Koan(Position = 666)]
param()
Describe "Regex" {
It "breaks your brainz" {
$res = __ -match '^(?<pp>a )must-have tool(?(pp)|s)'
$res |Should -Be $true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment