$ ./guess_the_language
Regex
Regex · hard · #33
What does this expression return?
'abc'.replace(/(?=b)/, '-')
'a-bc'
'a-c'
'ab-c'
'-abc'
A lookahead matches an empty position, so the replacement is inserted before "b" without removing it.
Play Regex ▸
◂ #32
all Regex questions
#34 ▸