1

Topic: Lua the regular expressions

I the small expert that another, probably somewhere am completely not right. I write a script on Lua To me it is necessary to find in line substring restricted to $ character a test line "$A $ = {a C} + $B $" I Try so s = line:match ("\\$. \\$"); So, s = line:match ("$. $"); In s it appears "$" instead of due "$A $" Even so tried.... s = line:match ("\$. \$");/home/baccm/projects/lua53/lua53: parse_tags.lua:19: invalid escape sequence near ' "\$ ' Prietom editors with search support on , find both coincidence on search" \$. \$"

2

Re: Lua the regular expressions

Hello, BacCM, you wrote: BCM> I the small expert that another, probably somewhere is completely not right. BCM> I write a script on Lua What version? BCM> I should find in line substring restricted to $ BCM character> a test line "$A $ = {a C} + $B $" BCM> I Try so BCM> s = line:match ("\\$. \\$"); s = line:match ("% $. % $"); to Read about "standard way to escape the magic characters".