Changed to a regex parsing scheme from composer,
to avoid the tokenize memory leak