Notepad ++ regex
#1

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).
Reply
#2

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

Try...
Reply
#3

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

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.
Reply
#5

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.
Reply
#6

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...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)