You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|[?<PowerShell_Attribute>](Attribute.regex.txt)|Matches a PowerShell attribute declaration |
11
11
|[?<PowerShell_AttributeValue>](AttributeValue.regex.txt)|This expression extracts the key/value pairs from a PowerShell attribute body (the content within parenthesis)|
|[?<PowerShell_HelpField>](HelpField.regex.ps1)|Matches specific fields from inline help<br/> |[generator](HelpField.regex.ps1)|
13
14
|[?<PowerShell_Invoke_Variable>](Invoke_Variable.regex.txt)|Matches any time a variable is invoked (with the . or & operator) |[source](Invoke_Variable.regex.source.ps1)|
14
15
|[?<PowerShell_ParameterSet>](ParameterSet.regex.txt)|Matches PowerShell ParameterSets (in [Parameter] and [CmdletBinding] attributes) |[source](ParameterSet.regex.source.ps1)|
Copy file name to clipboardExpand all lines: SavedPatterns.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
### Irregular Patterns
2
-
Irregular includes 137 regular expressions
2
+
Irregular includes 138 regular expressions
3
3
|Name|Description|IsGenerator|
4
4
|:---|:----------|:----------|
5
5
|[ANSI_24BitColor](/RegEx/ANSI/24BitColor.regex.txt)|Matches an ANSI 24-bit color|False|
@@ -112,6 +112,7 @@ Irregular includes 137 regular expressions
112
112
|[PII_Unredacted_SSN](/RegEx/PII/Unredacted_SSN.regex.txt)|Matches Unredacted Social Security Numbers|False|
113
113
|[PowerShell_Attribute](/RegEx/PowerShell/Attribute.regex.txt)|Matches a PowerShell attribute declaration|False|
114
114
|[PowerShell_AttributeValue](/RegEx/PowerShell/AttributeValue.regex.txt)|This expression extracts the key/value pairs from a PowerShell attribute body (the content within parenthesis)|False|
|[PowerShell_HelpField](/RegEx/PowerShell/HelpField.regex.ps1)|Matches specific fields from inline help|True|
116
117
|[PowerShell_Invoke_Variable](/RegEx/PowerShell/Invoke_Variable.regex.txt)|Matches any time a variable is invoked (with the . or & operator)|False|
117
118
|[PowerShell_ParameterSet](/RegEx/PowerShell/ParameterSet.regex.txt)|Matches PowerShell ParameterSets (in [Parameter] and [CmdletBinding] attributes)|False|
Export-RegEx -Name Digits, Decimals -As Script # Creates a script that embedes the expressions and Use-RegEx
31
47
```
32
48
49
+
50
+
33
51
---
52
+
53
+
34
54
### Parameters
35
55
#### **Name**
36
56
@@ -47,7 +67,6 @@ The name of the regular expression. If not provided, this can be inferred if th
47
67
48
68
49
69
50
-
---
51
70
#### **Path**
52
71
53
72
The export path.
@@ -64,7 +83,6 @@ If this is not provided, it will export regular expressions to the user's Irregu
64
83
65
84
66
85
67
-
---
68
86
#### **As**
69
87
70
88
How the expression will be exported.
@@ -96,7 +114,6 @@ Valid Values:
96
114
97
115
98
116
99
-
---
100
117
#### **Noun**
101
118
102
119
If provided, will rename -RegEx commands with the provided -Noun.
@@ -114,27 +131,35 @@ It prevents name conflicts with Irregular.
114
131
115
132
116
133
117
-
---
118
134
#### **WhatIf**
119
135
-WhatIf is an automatic variable that is created when a command has ```[CmdletBinding(SupportsShouldProcess)]```.
120
136
-WhatIf is used to see what would happen, or return operations without executing them
121
137
#### **Confirm**
122
138
-Confirm is an automatic variable that is created when a command has ```[CmdletBinding(SupportsShouldProcess)]```.
123
139
-Confirm is used to -Confirm each operation.
124
-
140
+
125
141
If you pass ```-Confirm:$false``` you will not be prompted.
126
-
127
-
142
+
143
+
128
144
If the command sets a ```[ConfirmImpact("Medium")]``` which is lower than ```$confirmImpactPreference```, you will not be prompted unless -Confirm is passed.
0 commit comments