Closed
Description
Is your feature request related to a problem? Please describe.
When replacing the pattern \\b
(word boundary) with X
for the string a\nb
, Python and Java produce XaX\nXbX
and cuDF produces XXXa\nb
.
>>> re.sub('\\b', 'X', 'a\nb')
'XaX\nXbX'
>>> cudf.Series(['a\nb']).str.replace('\\b', 'X', regex=True)
0 XXXa\nb
Describe the solution you'd like
I would like the ability to match Python/Java behavior in this case.
Describe alternatives you've considered
None
Additional context
None