Built up basic tokenisation with RegExp