Skip to content

Commit 1826166

Browse files
authored
Merge branch 'master' into patch-106
2 parents 3c8611d + 07536fc commit 1826166

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

skype/skype-ps/skype/New-CsTeamsTranslationRule.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,35 +28,35 @@ You can use this cmdlet to create a new number manipulation rule. The rule can b
2828

2929
### Example 1
3030
```powershell
31-
PS C:\> New-CsTeamsTranslationRule -Identity AddPlus1 -Pattern ^(\d{10})$ -Translation +$1
31+
PS C:\> New-CsTeamsTranslationRule -Identity 'AddPlus1' -Pattern '^(\d{10})$' -Translation '+$1'
3232
```
3333

3434
This example creates a rule that adds +1 to any ten digits number. For example, 2065555555 will be translated to +1206555555
3535

3636
### Example 2
3737
```powershell
38-
PS C:\> New-CsTeamsTranslationRule -Identity StripPlus1 -Pattern ^+1(\d{10})$ -Translation $1
38+
PS C:\> New-CsTeamsTranslationRule -Identity 'StripPlus1' -Pattern '^+1(\d{10})$' -Translation '$1'
3939
```
4040

4141
This example creates a rule that strips +1 from any E.164 eleven digits number. For example, +12065555555 will be translated to 206555555
4242

4343
### Example 3
4444
```powershell
45-
PS C:\> New-CsTeamsTranslationRule -Identity AddE164SeattleAreaCode -Pattern ^(\d{4})$ -Translation +120655$1
45+
PS C:\> New-CsTeamsTranslationRule -Identity 'AddE164SeattleAreaCode' -Pattern '^(\d{4})$' -Translation '+120655$1'
4646
```
4747

4848
This example creates a rule that adds +1206555 to any four digits number (converts it to E.164number). For example, 5555 will be translated to +1206555555
4949

5050
### Example 4
5151
```powershell
52-
PS C:\> New-CsTeamsTranslationRule -Identity AddSeattleAreaCode -Pattern ^(\d{4})$ -Translation 425555$1
52+
PS C:\> New-CsTeamsTranslationRule -Identity 'AddSeattleAreaCode' -Pattern '^(\d{4})$' -Translation '425555$1'
5353
```
5454

5555
This example creates a rule that adds 425555 to any four digits number (converts to non-E.164 ten digits number). For example, 5555 will be translated to 4255555555
5656

5757
### Example 5
5858
```powershell
59-
PS C:\> New-CsTeamsTranslationRule -Identity StripE164SeattleAreaCode -Pattern ^+1206555(\d{4})$ -Translation $1
59+
PS C:\> New-CsTeamsTranslationRule -Identity 'StripE164SeattleAreaCode' -Pattern '^+1206555(\d{4})$' -Translation '$1'
6060
```
6161

6262
This example creates a rule that strips +1206555 from any E.164 ten digits number. For example, +12065555555 will be translated to 5555

0 commit comments

Comments
 (0)