Skip to content

Commit 7cc3041

Browse files
committed
code fensing
1 parent 55efee8 commit 7cc3041

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/cognitive-services/LUIS/luis-concept-entity-types.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,13 +232,13 @@ The entity is a good fit when:
232232

233233
Regular expressions may match more than you expect to match. An example of this is numeric word matching such as `one` and `two`. An example is the following regex, which matches the number `one` along with other numbers:
234234

235-
```text
235+
```javascript
236236
(plus )?(zero|one|two|three|four|five|six|seven|eight|nine)(\s+(zero|one|two|three|four|five|six|seven|eight|nine))*
237237
```
238238
239239
This regex expression also matches any words that end with this numbers, such as `phone`. In order to fix issues like this, make sure the regex matches takes into account word boundaries. The regex to use word boundaries for this example is used in the following regex:
240240
241-
```text
241+
```javascript
242242
\b(plus )?(zero|one|two|three|four|five|six|seven|eight|nine)(\s+(zero|one|two|three|four|five|six|seven|eight|nine))*\b
243243
```
244244

0 commit comments

Comments
 (0)