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 stringawithout needing a followingbcharacter. However it won't matchbalone.