SA-MP Forums Archive
Notepad ++ regex - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Other (https://sampforum.blast.hk/forumdisplay.php?fid=7)
+--- Forum: Everything and Nothing (https://sampforum.blast.hk/forumdisplay.php?fid=23)
+--- Thread: Notepad ++ regex (/showthread.php?tid=566352)



Notepad ++ regex - AroseKhanNiazi - 05.03.2015

I have this code in my game mode all over
pawn Код:
gObject[0] =
....
gObject[442] =
How can i replace it, with "\0" (i mean with nothing).


Re: Notepad ++ regex - Naresh - 05.03.2015

i think it is */<What code you dont need>/*

Try...


Re: Notepad ++ regex - Mmartin - 05.03.2015

Find what: gObject\[[0-9]+\] \=(.*)[\r\n]*
Replace with: (leave empty)


Re: Notepad ++ regex - AroseKhanNiazi - 05.03.2015

Quote:
Originally Posted by Mmartin
Посмотреть сообщение
Find what: gObject\[[0-9]+\] \=(.*)[\r\n]*
Replace with: (leave empty)
this matches like charm but it selects my whole line. I want just these to select.


Re: Notepad ++ regex - Mmartin - 05.03.2015

Only "gObject[0] ="? In that case: gObject\[[0-9]+\] \=

You might want to add a space after the = sign (if there is one between it and the CreateObject or w/e you use), so you don't get loose indentation warnings.


Re: Notepad ++ regex - AroseKhanNiazi - 05.03.2015

Quote:
Originally Posted by Mmartin
Посмотреть сообщение
Only "gObject[0] ="? In that case: gObject\[[0-9]+\] \=

You might want to add a space after the = sign (if there is one between it and the CreateObject or w/e you use), so you don't get loose indentation warnings.
Worked Like charm, Thanks.

edit... btw how the hell you know i had createobject after that with an space...