home
I am trying to format a string with a regex as follows: String string = "5.07+12.0+2.14"; string =...
I am trying to add a letter to each consonant, the issue I do have is that I cannot figure out how...
This question already has an answer here: Regex replace text outside...
I´m trying to replace some characters in my string but it isnt working. Can you please help me?...
I have a JSON response where all the double quotes are delimited with \. So to print contents as...
This question already has an answer here: String's replaceAll()...
I'm trying to replace a url string to lowercase but wanted to keep the certain pattern string as it...
This question already has an answer here: Immutability of Strings in...
This question already has an answer here: Java Regex - Ilegal...
String preCode = "helloi++;world"; String newCode = preCode.replaceAll("i++;", ""); // Desired...
Map contents: key (#500 - #509); and there values for (Map.Entry<String, Double> entry :...
I want to change the string "S/" to "S/." only whole word , I tried with Pattern.compile and...
This question already has an answer here: Why doesn't `\d` work in...
I have a strange behavior on a really simple problem. I have a string with a lot of null strings:...
I have names like "John Connele MCA MD" and "John O'Connele" and I used this regex...
I'm trying to make a function which replaces specific strings within a set of code according to a...
Is it possible to ignore delimiters when using regex expressions and the Java String.replaceAll()...
Hi I am trying to use the replaceAll() method to replace a everthing on a string except a a string...
This question already has an answer here: Javascript Remove strings in...
I need to parse some text, I am doing this using a Regex expression within the replaceAll() method....
i have just started writing a (guess letters game) as an assignment .. in java (the first player ...
I have the string 'WordsofWisdom' and if I apply this: replaceAll("([^_])([A-Z])", "$1 $2") it...
I have this String: String a = [MercadosArmados.GpoMerc-CTN3].[Mercado Marketing SNC].[Mk...
I am trying to run below mentioned code in JDK 1.3 and giving error as JDK1.3 does not support...
My json file contains white space such as 1522663136Vehicle and Bike Procurement Notice 1.PDF. In...
I need to write chess programm that uses FEN as an argument for creating a chess board. To simplyfy...
I have the following SQL string defined as a StringBuilder and want to replace all the ? with their...
I can replace dollar signs by using Matcher.quoteReplacement. I can replace words by adding...
This question already has an answer here: String.replaceAll single...
This question already has an answer here: What special characters must...