QQfoolsorellina Posted November 29, 2011 Posted November 29, 2011 (edited) Good day, everyone. I have a trouble in Regular expression I don't know how to input the correct command. What I want to do is to replace all the mvp 's dMotion filed with value 0 in mob_db.txt. I think the condition of mvp is MEXP >0,but I suck at use Regular expression so I need someone kindly help to tell me the right RE code .. thank in advance. Edited November 29, 2011 by QQfoolsorellina Quote
KeyWorld Posted November 29, 2011 Posted November 29, 2011 I don't know how np++ work with regular expression but it should be something like this: search: ,0x([a-fA-F0-9]+),(\d),(\d),(\d), repace: ,0x\1,\2,\3,0, Quote
QQfoolsorellina Posted November 29, 2011 Author Posted November 29, 2011 (edited) I don't know how np++ work with regular expression but it should be something like this: search: ,0x([a-fA-F0-9]+),(d),(d),(d), repace: ,0x1,2,3,0, np++ use RE search result : not wroking ! only TREASURE_BOX can be searched Edited November 29, 2011 by QQfoolsorellina Quote
QQfoolsorellina Posted November 20, 2012 Author Posted November 20, 2012 (edited) Hi , I can't understand how the R.E. work but I want replace all custom msg_txt 1. in atcommand.c msg_txt(8XX) ~ msg_txt(9XX) replace with msg_txt(18XX) ~ msg_txt(19XX) 2 in msg_athena.conf 8XX: XXXXXXX ~ 9XX: XXXXXXX replace with 18XX: XXXXXXX ~ 19XX: XXXXXXX anyone can tell me how to input RE syntactic structure? , thanks. Edited November 20, 2012 by QQfoolsorellina Quote
Neo-Mind Posted November 20, 2012 Posted November 20, 2012 try these in atcommand.c search: msg_txt\(([89]\d\d)\) replace : msg_txt\(1\1\) in msg_athena.conf search: ^([89]\d\d:) replace: 1\1 Quote
QQfoolsorellina Posted November 20, 2012 Author Posted November 20, 2012 (edited) try these in atcommand.c search: msg_txt\(([89]\d\d)\) replace : msg_txt\(1\1\) in msg_athena.conf search: ^([89]\d\d:) replace: 1\1 thank for your help both work peferctly Edited November 20, 2012 by QQfoolsorellina Quote
Question
QQfoolsorellina
Good day, everyone.
I have a trouble in Regular expression I don't know how to input the correct command.
What I want to do is to replace all the mvp 's dMotion filed with value 0 in mob_db.txt.
I think the condition of mvp is MEXP >0,but I suck at use Regular expression so I need
someone kindly help to tell me the right RE code .. thank in advance.
Edited by QQfoolsorellina5 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.