UNPKG
@alexaegis/advent-of-code-lib
Version:
latest (1.0.1)
1.0.1
1.0.0
Advent of Code Library
github.com/AlexAegis
AlexAegis/advent-of-code
@alexaegis/advent-of-code-lib
/
regex.js
15 lines
(14 loc)
•
243 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
const
NUM
=
/([+-])?\d+/gi
;
const
INUM
=
/([+-])\d+/gi
;
const
UNUM
=
/\d+/gi
;
const
NEWLINE
=
/\r?\n/
;
const
WHITESPACE
=
/\s+/
;
const
DOUBLE_NEWLINE
=
/\r?\n\r?\n/
;
export
{
DOUBLE_NEWLINE
,
INUM
,
NEWLINE
,
NUM
,
UNUM
,
WHITESPACE
};