Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

java replace string case insensitive

String target = "FOOBar";
target = target.replaceAll("(?i)foo", "");
System.out.println(target);
Comment

java replace ignore case

String phrase = "StEVen";
		String result = phrase.replaceAll("(?i)e", "f");
		System.out.println(result);
Comment

PREVIOUS NEXT
Code Example
Java :: How to find the prime factors of a number in Java? 
Java :: java string regexp replace 
Java :: collatz conjecture 
Java :: compare two times in java 
Java :: how to check if the file has remaining without reading from it java 
Java :: uninstall java ac 
Java :: create java gui intellij 
Java :: playerhead command minecraft 
Java :: code for checking android build version 
Java :: unique elements in array java 
Java :: java create empty arraylist 
Java :: how to remove null values collections 
Java :: javafx main class 
Java :: java print statement 
Java :: mongodb java find all documents 
Java :: how to get color from resource android 
Java :: how to update java on windows 10 
Java :: change color of drawable android studio 
Java :: java split string array 
Java :: convert fileinputstream to string java 
Java :: java inline conditional 
Java :: execute exe java 
Java :: string to int in java 
Java :: java.lang.ArrayIndexOutOfBoundsException 
Java :: java exception 
Java :: indext of minimum element in an array in java 
Java :: java fot 
Java :: nosuchelementexception 
Java :: java swing windows 10 look and feel 
Java :: how to check number format exception in java 
ADD CONTENT
Topic
Content
Source link
Name
3+5 =