Ignore part [^\\] in regex

by Aleksandr Kozlovskiy   Last Updated August 14, 2019 01:23 AM

I want to find,using lua features,char $,only if before it no char . For this i create regex ([^\]?)%$,but it ignore the first part of my regex and find only %$,so help me please solve my problem. I create this topic in this site,instead of stackoverflow.com,because may be it problem only in lualatex? Yes,i know,what in lua very bad pattern parser,but i hope,i can find $,only,if it the first char of line or only if before it is char,not equals . Thanks everybody very much for the help.

Tags : luatex

Related Questions

Updated June 16, 2015 05:10 AM

Updated July 03, 2015 17:10 PM

Updated July 05, 2015 13:10 PM

Updated May 03, 2015 00:10 AM

Updated May 06, 2015 10:21 AM