Flex: replace all spaces with comma

Posted by Treby on Stack Overflow See other posts from Stack Overflow or by Treby
Published on 2010-03-24T01:53:22Z Indexed on 2010/03/24 2:03 UTC
Read the original article Hit count: 701

Filed under:
|

im new with regexp, so can i ask for some assistance

Using string.replace function what code that can replace spaces with comma

Input:The quick brown fox jumps over the lazy dog. Output:The,quick,brown,fox,jumps,over,the,lazy dog.

Thanks

© Stack Overflow or respective owner

Related posts about flex

Related posts about regexp