Java tutorial
//package com.java2s; public class Main { /** * Sanitise string for use as C identifier * * @param s String * * @return Sanitised string */ static String sanitise(String s) { return s.replaceAll("/", "_"); } }