Merge pull request #31977 from petoju/feature/fix-alternative

Fix regex pattern for more alternatives
This commit is contained in:
Rose M Koron 2023-05-05 15:51:39 -07:00 committed by GitHub
commit 374885addf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -71,7 +71,7 @@ of the pattern must be escaped as `\\`.
| `\PN` | The opposite of `\pN` |
| `\P{Greek}` | The opposite of `\p{Greek}` |
| `xy` | `x` followed immediately by `y` |
| <code>x\&#124;y</code> | either `x` or `y`, preferring `x` |
| `x&#124;y` | either `x` or `y`, preferring `x` |
| `x*` | zero or more `x`, preferring more |
| `x*?` | zero or more `x`, preferring fewer |
| `x+` | one or more `x`, preferring more |