Skip to content

Commit 62a3b2f

Browse files
committed
main
1 parent db6c634 commit 62a3b2f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

docs/document/Powershell/docs/Language/String.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ Exception will be raised if conversion failed.
114114
```ps1
115115
'Janet is a girl' -match 'Jane' # True
116116
'Janet is a girl' -replace '^Janet', 'Jane'
117+
'Janet is a girl' -replace '^Janet', 'Jane' -replace 'is', 'is not' # replace multiple times inline.
117118
```
118119

119120
All previous matches and captured groups can be accessed in `$matches` builtin variable.

docs/document/Powershell/docs/Object Manipulation/Extended Type System.md renamed to docs/document/Powershell/docs/Type System/Extended Type System.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ A common example would be `Process` type.
1212
```ps1
1313
(gps | select -First 1).GetType().Name # Process
1414
(gps | select -First 1) -is [PSObject] # True
15-
(gps | select -First 1) -is [PSCustomObject] # True
1615
# -is checks underlying type too
1716
(gps | select -First 1) -is [System.Diagnostics.Process] # True
1817
```
@@ -24,6 +23,8 @@ The functionality of ETS achieved benifits:
2423
- Accessibility to the underlying object.
2524
- Manipulation on extended members.
2625

26+
## What's `PSObject`
27+
2728
## ETS Members
2829

2930
To represent meta of ETS members, Powershell has an abstract class called `PSMemberInfo`, each concrete member info type is derived from it.

0 commit comments

Comments
 (0)