Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Java-Beginners How to delete line starting with a letter in java Regex?
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


HHH
How to delete line starting with a letter in java Regex?
0 Answer(s)      3 years and 11 months ago
Posted in : Java Beginners


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


Advertisement
View Answers

Related Tutorials/Questions & Answers:
Advertisements
Advertisements
 

 

 

DMCA.com