Skip to content

Commit

Permalink
main
Browse files Browse the repository at this point in the history
  • Loading branch information
sharpchen committed Dec 8, 2024
1 parent db6c634 commit 62a3b2f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/document/Powershell/docs/Language/String.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ Exception will be raised if conversion failed.
```ps1
'Janet is a girl' -match 'Jane' # True
'Janet is a girl' -replace '^Janet', 'Jane'
'Janet is a girl' -replace '^Janet', 'Jane' -replace 'is', 'is not' # replace multiple times inline.
```

All previous matches and captured groups can be accessed in `$matches` builtin variable.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ A common example would be `Process` type.
```ps1
(gps | select -First 1).GetType().Name # Process
(gps | select -First 1) -is [PSObject] # True
(gps | select -First 1) -is [PSCustomObject] # True
# -is checks underlying type too
(gps | select -First 1) -is [System.Diagnostics.Process] # True
```
Expand All @@ -24,6 +23,8 @@ The functionality of ETS achieved benifits:
- Accessibility to the underlying object.
- Manipulation on extended members.

## What's `PSObject`

## ETS Members

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

0 comments on commit 62a3b2f

Please sign in to comment.