How to delete line starting with a letter in java Regex?

Ads
 

How to delete line starting with a letter in java Regex?

Hi,

i 'm trying to code with regex and java. i want to know how it's possible to delete lines which starts with a letter like G or g in a text.

i tried this but it's not working, please i need help.

[CODE] String[] paras = Pattern.compile("(?i)((s|i|r|o|s|m|t|n)[\s,]*)+").split(inputText); //String[] paras = Pattern.compile("[--]").split(inputText); [CODE/]

Thanks

View Answers

Ads









Related Tutorials/Questions & Answers:
How to delete line starting with a letter in java Regex?
how to delete a letter in a word?
Advertisements
Regexs
Java - How to read a string line per line
How to delete file in Java code?
How to write file by line in Java
How to read big file line by line in java?
How to delete .xlsx file in java?
How to read a large text file line by line in java?
How to delete file in java ?
How to delete files in Java?
How to pass command line arguments in Java?
letter count problem - Java Beginners
How can i read a file from nth line onwards in java
How can i draw a line using java swings
How can i draw a line using java swings
How to Read file line by line in Java program
How to delete a character from a file in java - Java Beginners
How to extract the entire line with specific data from a Text in java?
Java Read File Line by Line - Java Tutorial
How to Read a file line by line using BufferedReader?
HOW TO PARSE FILE WITH SEVERAL DELIMITERS AND LINE FEEDERS - Java Beginners
How to insert new line after every space in java
how can add new line character into ajax response for java
how can add new line character into ajax response for java
java - read file line by line in Java
Java read file line by line
how to write to file at the end of the line
Java Read File Line By Line, Video Tutorial of Java Read File Line By Line
Delete specific lines from text in Java
How To Read String From Command Line In Java

Ads