HHH
How to delete line starting with a letter in java Regex?
0 Answer(s)      4 years and 6 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