### yyyy-mm-dd hh:mm:ss
`(\d\d\d\d-\d\d-\d\d \d\d:\d\d:\d\d)`
### ip address
`\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}`
### capture Ticks then DateTime
`\d+,\d+,(\d+),([^,]*),.*`
### 2018-05-28T01:48:22.60
`\d\d\d\d-\d\d-\d\dT\d\d:\d\d:\d\d`
### Match lines without specific word, inverse matching
`^((?!text).)*$`
### Replace with lower case, first character, upper case \u
`\l\2`
### Replace with lower case, whole string, upper case \U
`\L\2`
### [Regular Expression Reference: Special Groups] (https://www.regular-expressions.info/refadv.html)
### Match line feeds that don't have a preceding carrier return
`"(?<!`r)`n"`
### Get the last word on a line
`(\w+)\W+$`
## Named capturing group, handy for setting flags
## [Regular Expression Reference: Named Groups and Backreferences](https://www.regular-expressions.info/refext.html)
switch -Regex ($textToRegexOn) {
"^somestuff(?<hasSwitchM>M)?" {
$hasSwitchM = if($matches.Keys -contains "hasSwitchM") { "Something" } else { "Nothing" }
}
[Regular Expression Reference: Special Groups] (https://www.regular-expressions.info/refadv.html)
### Matches at a position if the pattern inside the lookbehind can be matched ending at that position.
```(?<=regex)```