X
X
Xenia2018-03-24 03:21:27
Regular Expressions
Xenia, 2018-03-24 03:21:27

How to remove a tab character from a string?

Hello!
There is a line like 100644 blob a35261dac2e688dd05f297c3f802caf50e691822\tsometh
how do I replace \t with a space in it?
replace(/\t/, ' ') doesn't work

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
vreitech, 2018-03-24
@fzfx

replace(/\\t/, ' ')
or specify in more detail which version of pearl you are using, and whether you really mean the sequence '\t' as a tab character.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question