Skip to content

Commit ec0f50a

Browse files
StartAutomatingStartAutomating
authored andcommitted
Cleaning up Core Inline Transpiler (#111)
1 parent 35c6209 commit ec0f50a

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

docs/RegexLiteral.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,21 @@ The ending slash may be followed by ```[Text.RegularExpressions.RegexOptions]```
2626
[regex]::new('[a|b]', 'IgnoreCase')
2727
#### EXAMPLE 2
2828
```PowerShell
29+
Invoke-PipeScript {
30+
'/[a|b]/'.Matches('ab')
31+
}
32+
```
33+
34+
#### EXAMPLE 3
35+
```PowerShell
2936
{
3037
"/[$a|$b]/"
3138
} | .>PipeScript
3239
```
3340
# This will become:
3441

3542
[regex]::new("[$a|$b]", 'IgnoreCase')
36-
#### EXAMPLE 3
43+
#### EXAMPLE 4
3744
```PowerShell
3845
{
3946
@'
@@ -52,7 +59,7 @@ The ending slash may be followed by ```[Text.RegularExpressions.RegexOptions]```
5259
^ # Match the string start
5360
(?<indent>\s{0,1})
5461
'@, 'IgnorePatternWhitespace,IgnoreCase')
55-
#### EXAMPLE 4
62+
#### EXAMPLE 5
5663
```PowerShell
5764
$Keywords = "looking", "for", "these", "words"
5865
```

0 commit comments

Comments
 (0)