diff --git a/OsmAnd-java/src/net/osmand/util/Algorithms.java b/OsmAnd-java/src/net/osmand/util/Algorithms.java index 2dfc8e3500..38018766b3 100644 --- a/OsmAnd-java/src/net/osmand/util/Algorithms.java +++ b/OsmAnd-java/src/net/osmand/util/Algorithms.java @@ -280,6 +280,16 @@ public class Algorithms { return ""; } + public static String extractOnlyIntegerSuffix(String s) { + int k = 0; + for (; k < s.length(); k++) { + if (Character.isDigit(s.charAt(k))) { + return s.substring(k); + } + } + return ""; + } + public static String extractIntegerSuffix(String s) { int k = 0; for (; k < s.length(); k++) {