Builds a partial regex from the input regex. A partial regex is able to match incomplete input strings. E.g. a partial regex constructed from /ab/ is able to match the string a without needing a following b character. However it won't match b alone.
/ab/
a
b
The input regex to be converted.
A partial regex constructed from the input regex.
Builds a partial regex from the input regex. A partial regex is able to match incomplete input strings. E.g. a partial regex constructed from
/ab/
is able to match the stringa
without needing a followingb
character. However it won't matchb
alone.