Question: specific date is "**2013-11-12**".

I want to extract day, month and year from above date. Please let me know how can I extract?

Answer: 
If you prefer `Select-String` over the `-replace` operator (which is just syntactic sugar for calling `[Regex]::Replace`), PowerShell V3 has a few shortcuts that can save some typing.

First, there is an alias for `Select-String` => **`sls`**.
Second, with simple foreach-object script blocks, you can replace the script block with just the property.

Combining these, you can use

```
$output | sls $regex | % Matches | % Value

```

To save even more typing, PowerShell can tab complete Matches but not Value.

Another option that is even less typing is to use property syntax:

```
($output | sls $regex).Matches.Value

```

As a bonus, tab completion can complete both Matches and Value in this example. Note that this second example works in V2 but only if there is a single matching line. If there are multiple matching lines, only in V3 will you see all the results, V2 would show nothing or an error if strict mode is enabled.
Try this:

```
$output -replace ".*($regex).*",'$1'

```