lua-patterns
Lua: Escaping literal % inside string.gsub and the capture %2
Basic question but I\'ve been trying to figure out for a while with no luck. I am processing urls and need to do a simple replacement.[详细]
2023-03-31 06:39 分类:问答Separate a string using a regex
_, _, XYZ, Path, filename= string.find(\"re32:HKEY_LOCAL_MACHINE\\\\SOFTWARE\\\\XYZ\\\\Assistant\\\\Active \", \"(%w+):(.+)\\\\(.*)\")[详细]
2023-02-14 18:37 分类:问答What is the proper Lua pattern for quoted text?
I\'ve been playing with this for an hour or tow and have found myself at a road block with the Lua pattern matching utilities.I am attempting to match all quoted text in a string and replace it if nee[详细]
2023-01-27 21:14 分类:问答Lua Pattern for extracting/replacing value in / /
I have a string like hello /world today/ I need to replace /world today/ with /MY NEW STRING/ Reading th开发者_开发知识库e manual I have found[详细]
2023-01-14 02:08 分类:问答Matching with Opening/Closing Pair Characters in Regular Expressions
First, a little background. I have strings that resemble the following: ((Foo.Bar.StartsWith(\"A\")) &&[详细]
2022-12-22 06:45 分类:问答