# String chunking in JavaScript

> How to implement string chunking in JavaScript via match() with the help of a regular expression. A short Today I Learned note from the Graffino team.

- URL: https://graffino.com/til/string-chunking-in-javascript
- Author: Nick Ciolpan
- Channel: javascript
- Published: 2021-07-16
- Updated: 2021-09-18

```
"1234567890".match(/.{1,2}/g);
```
Results in:
```
["12", "34", "56", "78", "90"]
```
