You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
497 B

5 years ago
## Letter Space Number
### Instructions
5 years ago
Create a function named `letterSpaceNumber` that accepts a string; returning an array with every instance of a letter, followed by a space, followed by a number, only if that number has only one digit, and is not followed by any letter.
5 years ago
### Examples
```js
console.log(letterSpaceNumber('example 1, example 20'))
// output: ['e 1']
```
5 years ago
### Notions
- [RegEx Shorthand Character Sets](https://github.com/ziishaned/learn-regex#3-shorthand-character-sets)