File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11Compress-Regex
22--------------
33
4-
5-
6-
74### Synopsis
85Compresses Regular Expressions
96
10-
11-
127---
138
14-
159### Description
1610
1711Compresses a Regular Expression, removing all whitespace and comments.
1812
1913This will make a regular expression much more difficult to read, and a bit shorter.
2014
21-
22-
2315---
2416
25-
2617### Examples
27- #### EXAMPLE 1
18+ > EXAMPLE 1
19+
2820``` PowerShell
2921New-Regex -Description "This is a description of a regex nobody will care about" |
3022 New-Regex -Name Width @(
@@ -35,48 +27,26 @@ New-Regex -Description "This is a description of a regex nobody will care about"
3527 ) | Compress-Regex
3628```
3729
38-
39-
4030---
4131
42-
4332### Parameters
4433#### ** Regex**
45-
4634The regular expression to compress.
4735
48-
49-
50-
51-
52-
5336| Type | Required| Position| PipelineInput | Aliases |
5437| ---------| --------| --------| ------------------------------| --------------------------------------------|
5538| ` [Regex] ` | true | 1 | true (ByValue, ByPropertyName)| RegularExpression<br />Pattern<br />Expression|
5639
57-
58-
5940#### ** MatchTimeout**
60-
6141The Match Timeout.
6242By default, this value will be carried over from the -RegEx.
6343
64-
65-
66-
67-
68-
6944| Type | Required| Position| PipelineInput|
7045| ------------| --------| --------| -------------|
7146| ` [TimeSpan] ` | false | named | false |
7247
73-
74-
75-
76-
7748---
7849
79-
8050### Syntax
8151``` PowerShell
8252Compress-Regex [-Regex] <Regex> [-MatchTimeout <TimeSpan>] [<CommonParameters>]
You can’t perform that action at this time.
0 commit comments