I use YAML to get MySQL schema and i need to parse only these kind of strings CHAR(60) or VARCHAR(90) etc..
Parsing result would be like this:
array('CHAR', 60);
array('VARCHAR', 90);
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The following regex will do it. If these don’t occur one per line, you should also add the
\bboundaries after the opening slash and before the closing one.EDIT: Had the
$matchesarray keys wrong the first time. Should be 1 & 2, not 0 & 1.