File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,10 @@ This directory and it's subdirectories contain syntax changes that enable common
4444 {
4545 '/[a|b]/'
4646 } | .>PipeScript
47+
48+ # This will become:
49+
50+ [regex]::new('[a|b]', 'IgnoreCase')
4751~~~
4852
4953## RegexLiteral Example 2
@@ -53,13 +57,18 @@ This directory and it's subdirectories contain syntax changes that enable common
5357 {
5458 "/[$a|$b]/"
5559 } | .>PipeScript
60+
61+ # This will become:
62+
63+ [regex]::new("[$a|$b]", 'IgnoreCase'
5664~~~
5765
5866## RegexLiteral Example 3
5967
6068
6169~~~ PowerShell
62- {@'
70+ {
71+ @'
6372/
6473# Heredocs Regex literals will have IgnorePatternWhitespace by default, which allows comments
6574^ # Match the string start
@@ -75,7 +84,7 @@ This directory and it's subdirectories contain syntax changes that enable common
7584~~~ PowerShell
7685 {
7786 $Keywords = "looking", "for", "these", "words"
78- @"
87+ @"
7988/
8089# Double quoted heredocs can still contain variables
8190[\s\p{P}]{0,1} # Whitespace or punctuation
You can’t perform that action at this time.
0 commit comments