In Javascript what would be the regex for a tab followed by a space (EXACTLY THAT).
I know it's something like:
var c = dataString.replace(/\t\s/g,'<br />');
But this is finding tabs or spaces globally, not a tab followed by a space as an exact match.
Thanks ahead of time!
In Javascript what would be the regex for a tab followed by a space (EXACTLY THAT).
I know it's something like:
var c = dataString.replace(/\t\s/g,'<br />');
But this is finding tabs or spaces globally, not a tab followed by a space as an exact match.
Thanks ahead of time!
Share Improve this question edited Jul 30, 2012 at 7:20 Rustam 1,9232 gold badges16 silver badges35 bronze badges asked Jun 18, 2012 at 16:00 DeltaTangoDeltaTango 8912 gold badges10 silver badges23 bronze badges1 Answer
Reset to default 13It would be /\t /
\s
also matches other whitespace characters, so you need a literal space character.