views:

52

answers:

1

I've got a string split, using a regular expression.

 Regex.Split(str, @"\s");

What does this convert to without regex? reason being I'm porting this to PHP and an SQL function. Unless you can show me the PHP code for the same...

+2  A: 

You can use preg_split

preg_split("/\\s/", str);
Amarghosh
Can you show me the SQL code for the same? I'm trying this as an SQL stored function.
Jenko