8
Böyle bir dosyayı nasıl ayrıştırabilirim:Java: Normal ifadeyle eşleşen her dizinin bir dizisini alma
Item costs $15 and is made up of --Metal--
Item costs $64 and is made up of --Plastic--
Pattern p = Pattern.compile(regex);
Matcher m = p.matcher(input);
String result = m.group();
yapabilirim. Peki herşeyi nasıl alabilirim?
Teşekkürler! Bunu denedim ve daha önce çalışmadı. Rejeksim berbat olmalı. –
@Joshua Coffey örnek bir String, regex ve ne istediğinizi sağlayabilir. Muhtemelen, sana yardım edebiliriz. – Nishant
Teşekkürler, ama anladım. –