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









Related Tutorials/Questions & Answers:
Advertisements