How to define foreach function for new version
#3

Quote:
Originally Posted by ******
Посмотреть сообщение
regex replace?

foreach\s*\((\w+),\s*(\w+)\)

foreach(new $2 : $1)
Oh, thank you, you saved my time
I really didn't knew about regular expressions and regex replaces until now
Thanks again!

But I have a (small) problem:
when I replace with my edtitor with this code, it replaces without round brackets(foreachnew i : Player)
I use notepad++ editor. Can be an editor bug or smth?
Reply


Messages In This Thread
How to define foreach function for new version - by StRaphael - 02.12.2018, 16:52
Re: How to define foreach function for new version - by StRaphael - 02.12.2018, 20:37
Re: How to define foreach function for new version - by StRaphael - 03.12.2018, 14:53

Forum Jump:


Users browsing this thread: 2 Guest(s)