gribbleshnibit8

Handy MCM Regex Replacers

May 27th, 2014
320
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.37 KB | None | 0 0
  1. No guarantee is provided that these will not mess something up. They have been tested against known good
  2. scripts, and those scripts were compiled properly. Use of these replacements is taken at risk by the user
  3. and as with any major edit, you should always make a backup before changing anything big with your code.
  4.  
  5.  
  6.  
  7. Converts MCM Get/SetUIFloat/String in many places, mostly for RESET replacement
  8. Search: ([sSgG]et)UI(Float|String) "StartMenu\/(MCM)\/((\*\:*)(\d*))\/((\*\:*)(\d*))\/(\w*\/((\*\:*)(\d*))\/\w*|\w*\/\w*|\w*)"
  9. Replace: $1$3$2 $6 $9 "$10"
  10. Matches: G/SetUIFloat/String "StartMenu/MCM/*:#/*:#/_____"
  11. Matches: G/SetUIFloat/String "StartMenu/MCM/*:#/*:#/_____/_____"
  12. Matches: SetUIString "StartMenu/MCM/*:#/*:#/value/*:#/string"
  13.  
  14.  
  15. Converts MCM Conditionals:
  16. Search: ([sSgG]et)UI(Float|String) "StartMenu\/(MCM)\/(\w*)"
  17. Replace: $1$3$2 0 0 "$4"
  18. Matches: G/SetUIFloat "StartMenu/MCM/_____"
  19.  
  20.  
  21. Converts edge case conditionals such as Mouseover, as well as settings such as column count
  22. Search: ([sSgG]et)UI(Float|String) "StartMenu\/(MCM)\/((\*\:*)(\d*))\/(\w*)"
  23. Replace: $1$3$2 0 $6 "$7"
  24. Matches: G/SetUIFloat "StartMenu/MCM/*:#/_____"
  25.  
  26.  
  27. Converts Mouseover settings:
  28. Search: ([sS]et)UI(Float|String) "StartMenu\/(MCM)\/(\*\:9|MCM_Info)\/(\w*)"
  29. Replace: $1$3$2 9 0 "$5"
  30. Matches: SetUIFloat "StartMenu/MCM/*:9/_____"
  31. Matches: SetUIFloat "StartMenu/MCM/*:9/MCM_Info"
Advertisement
Add Comment
Please, Sign In to add comment