I am in the process of formulating a regex for validating a text area that contains entries of the following format,
an url, boolean(true or false), string(with or without spaces)
An example is as follows,
http://www.yahoo.com, true, web mail site
http://www.google.com, false, a search site
So I was trying to formulate a regex for each line as below,
(^(http|https|ftp)\://[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,3}(:[a-zA-Z0-9]*)?/?([a-zA-Z0-9\-\._\?\,\'/\\\+&%\$#\=~])*$)(,(true|false))(,(.*))
Hence I can check each line, but this regex is not working. The whole regex fails to match the type of comma separated string. Also is there some way I can make this regex check for multiple lines and validating this pattern?