Javascript regex for tab followed by space

In Javascript, there will be a regular expression for the tab followed by a space (EXACTLY THIS).

I know this is something like:

var c = dataString.replace(/\t\s/g,'<br />'); 

But this is a search for tabs or spaces around the world, not a tab followed by a space as an exact match.

Thanks in advance!

+4
source share
1 answer

It will be /\t /

\s also matches other space characters, so you need a literal space.

+9
source

All Articles