python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
What Lua pattern behaves like a regex negative lookahead?
my problem is I need to write a Lua code to interpret a text file and match lines with a pattern like
if line_str:match(myPattern) then do myAction(arg) end
Let's say I want a pattern to match line...
Qwert Yuiop
Votes: 0
Answers: 1
Correctly escaping arguments of substitute for key mapping in nvim lua
I created a keymapping in nvim to swap the left and right side of an C equality comparison insice parentheses. It works like a charm from the nvim command prompt.
:nnoremap <F3> ci(:let @r=subst...
Alexander Stippler
Votes: 0
Answers: 1
LUA error "pattern too complex" - Tabletop Simulator
I have a string and I am trying to extract a particular section of from it using a LUA pattern match. I saved this as regex which you can see here, along with the string and regex syntax which extract...
Mucker
Votes: 0
Answers: 3
Lua pattern matching problem with escaped letter
I've already had a rule that \ should be replaced with \\\\
, so the existed code is
string.gsub(s, '\\', '\\\\\\\\')
but there is some data that should not be converted, such as abc\"cba, which...
lushuming
Votes: 0
Answers: 1