We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5fc3327 commit e0aca6cCopy full SHA for e0aca6c
1 file changed
Transpilers/Syntax/RegexLiteral.psx.ps1
@@ -1,4 +1,12 @@
1
<#
2
+.SYNOPSIS
3
+ Regex Literal Transpiler
4
+.DESCRIPTION
5
+ Allows for Regex Literals within PipeScript.
6
+
7
+ Regex Literals are strings enclosed within slashes.
8
9
+ The ending slash may be followed by ```[Text.RegularExpressions.RegexOptions]```.
10
.Example
11
{
12
'/[a|b]/'
@@ -8,8 +16,7 @@
16
"/[$a|$b]/"
17
} | .>PipeScript
18
.EXAMPLE
- {
- @'
19
+ {@'
13
20
/
14
21
# Heredocs Regex literals will have IgnorePatternWhitespace by default, which allows comments
15
22
^ # Match the string start
0 commit comments