Help with RegEx
#2

Escape the brackets that are meant as part of the text, and not as groups:

Код:
SetPVarInt\((.*?), "HouseManager", (.*?)\);
this should do it for most editors. Else dont use . matchers, better use what youre expecting to be there.

Код:
SetPVarInt\(([a-zA-Z0-9_]+), "HouseManager", ([0-9]+)\);
(not escaping the brackets here would cause the line to not being matched at all)
Reply


Messages In This Thread
Help with RegEx - by lolumadd_ - 08.10.2015, 02:16
Re: Help with RegEx - by Mauzen - 08.10.2015, 02:45
Re: Help with RegEx - by Write - 09.10.2015, 09:56

Forum Jump:


Users browsing this thread: 1 Guest(s)