Open xyzdata opened 6 years ago
https://regexper.com/#%2F%5E%5C%24%5C%7B%28%5Cw%2B%29%5C%7D%24%2F
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp
/^\$\{(\w+)\}$/
// source
// config/${RunMod}/opration/server-config.xml
// wanted result
//config/debug/opration/server-config.xml
let str = "config/${RunMod}/opration/server-config.xml, config/${RunMod}/opration/server-config.xml"
str.replace(/\$\{(\w+)\}/ig, "debug");
https://howtodoinjava.com/regex/java-regex-match-any-currency-symbol/
https://docs.oracle.com/javase/6/docs/api/java/lang/String.html https://docs.oracle.com/javase/6/docs/api/java/util/regex/Pattern.html#sum
https://docs.oracle.com/javase/specs/#100850
https://javamex.com/tutorials/regular_expressions/search_replace.shtml#.Wt2iMohubIU https://howtodoinjava.com/regex/java-regex-match-any-currency-symbol/
https://stackoverflow.com/questions/9716443/how-to-escape-dollar-sign-in-a-string-using-perl-regex http://www.tutorialspoint.com/java/java_regular_expressions.htm
https://www.tutorialspoint.com/compile_java_online.php https://repl.it/repls/AlphanumericPolishedGraphics
http://www.regexplanet.com/advanced/java/index.html https://www.freeformatter.com/java-regex-tester.html
java & repl
https://www.tutorialspoint.com/compile_java_online.php