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
How to delete file in Java code?
Java - How to read a string line per line
How to delete .xlsx file in java?
Regexs
How to write file by line in Java
How to delete file in java ?
How to delete files in Java?
How to read big file line by line in java?
How to read a large text file line by line in java?
how to read file line by line using filereader in java
How to pass command line arguments in Java?
ModuleNotFoundError: No module named 'regexf'
ModuleNotFoundError: No module named 'regexy'
How can i read a file from nth line onwards in java
How to extract the entire line with specific data from a Text in java?
Delete specific lines from text in Java
How to Read file line by line in Java program
Java delete file if exists
Java Read File Line by Line - Java Tutorial
how can add new line character into ajax response for java
How to insert new line after every space in java
how can add new line character into ajax response for java
How to Read a file line by line using BufferedReader?
Java Read File Line By Line, Video Tutorial of Java Read File Line By Line
java - read file line by line in Java
how to delete a row in sql without using delete command.
How To Read String From Command Line In Java
How to delete data from MySQL?
How to delete objects using Hibernate?

Ads