Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私の入力段落は、道路または大通りで終わる道路で構成されています (例: メルボルン道路またはネゴンボ キンブラピティヤ道路)。段落から道路名を抽出するためのパターン タイプを提案してくれる人はいますか?
String常に で終わる場合' Road'は、最後の 5 文字を削除できます.-
String
' Road'
String res = road.substring(0, road.length - 5);