made the directive parser to use RegExp to handle ['f'] or [0]