Allow dollar($) and caret(^) for inline patterns

This makes sure that it is possible to use all ascii symbols for inline patterns including the dollar ($) and caret (^) symbol. Especially dollar is usefull, as (La)TeX uses dollar ($) for math sections.