11RegexLiteral
22------------
3+
4+
5+
6+
37### Synopsis
48Regex Literal Transpiler
59
10+
11+
612---
13+
14+
715### Description
816
917Allows for Regex Literals within PipeScript.
@@ -12,7 +20,11 @@ Regex Literals are strings enclosed within slashes.
1220
1321The 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
89105A 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
106120It 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
123140RegexLiteral -StringConstantExpression <StringConstantExpressionAst> [<CommonParameters>]
124141```
125142``` PowerShell
126143RegexLiteral -ExpandableStringExpression <ExpandableStringExpressionAst> [<CommonParameters>]
127144```
128- ---
129145
0 commit comments