Skip to content

Commit a76f6c0

Browse files
StartAutomatingStartAutomating
authored andcommitted
Join-PipeScript: Improving Unnamed end block behavior (Fixes #363)
1 parent 8cda7c8 commit a76f6c0

File tree

1 file changed

+26
-10
lines changed

1 file changed

+26
-10
lines changed

docs/RegexLiteral.md

Lines changed: 26 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
11
RegexLiteral
22
------------
3+
4+
5+
6+
37
### Synopsis
48
Regex Literal Transpiler
59

10+
11+
612
---
13+
14+
715
### Description
816

917
Allows for Regex Literals within PipeScript.
@@ -12,7 +20,11 @@ Regex Literals are strings enclosed within slashes.
1220

1321
The ending slash may be followed by ```[Text.RegularExpressions.RegexOptions]```.
1422

23+
24+
1525
---
26+
27+
1628
### Examples
1729
#### EXAMPLE 1
1830
```PowerShell
@@ -82,48 +94,52 @@ $($Keywords -join '|') # followed by keywords
8294
$($Keywords -join '|') # followed by keywords
8395
[\s\p{P}]{0,1} # followed by whitespace or punctuation
8496
"@, 'IgnorePatternWhitespace,IgnoreCase')
97+
98+
8599
---
100+
101+
86102
### Parameters
87103
#### **StringConstantExpression**
88104

89105
A RegexLiteral can be any string constant expression (as long as it's not in an attribute).
90106

91107

92108

93-
> **Type**: ```[StringConstantExpressionAst]```
94109

95-
> **Required**: true
96110

97-
> **Position**: named
98111

99-
> **PipelineInput**:true (ByValue)
112+
|Type |Required|Position|PipelineInput |
113+
|-------------------------------|--------|--------|--------------|
114+
|`[StringConstantExpressionAst]`|true |named |true (ByValue)|
100115

101116

102117

103-
---
104118
#### **ExpandableStringExpression**
105119

106120
It can also by any expandable string, which allows you to construct Regexes using PowerShell variables and subexpressions.
107121

108122

109123

110-
> **Type**: ```[ExpandableStringExpressionAst]```
111124

112-
> **Required**: true
113125

114-
> **Position**: named
115126

116-
> **PipelineInput**:true (ByValue)
127+
|Type |Required|Position|PipelineInput |
128+
|---------------------------------|--------|--------|--------------|
129+
|`[ExpandableStringExpressionAst]`|true |named |true (ByValue)|
130+
131+
117132

118133

119134

120135
---
136+
137+
121138
### Syntax
122139
```PowerShell
123140
RegexLiteral -StringConstantExpression <StringConstantExpressionAst> [<CommonParameters>]
124141
```
125142
```PowerShell
126143
RegexLiteral -ExpandableStringExpression <ExpandableStringExpressionAst> [<CommonParameters>]
127144
```
128-
---
129145

0 commit comments

Comments
 (0)