Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #one# -> <element name="one">
- #two# -> <element name="two">
- replaceAll("#[w]#", "<element name="[?1]"");
- // my hope is that I can remember a value somehow (`[w]`) and use it for the substitution ([?1])
- // which is, written like this, a nonsense
- str = str.replaceAll("#(\w+)#", "<element name="$1">");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement