From: Allan Bonadio Date: 2010-08-28T11:13:40+09:00 Subject: Re: how to detect used protocol (SOAP, JSON, XML etc.) Allan Bonadio wrote: > But of course you can legally stick in spaces so you could use this > regex: > if (datastring..search(/^\s*[\[|\{]/) >= 0) .... oops sorry, take the vertical bar out of that regex. -- Posted via http://www.ruby-forum.com/.