java – Parse number with regexp
I have a text block as a paragraph that starts from some number as a string. There could be simple numbers or dotted ones. I have the next paragraph numbers:
1) sovereign control will prevail
1.1. These are the Rules
5.47.1 "Пункт зупинки тролейбуса".
I use the next regexp expression to find the number.
([0-9.,\\-\\s]+)\\b")
Now, I got the new number format
source text
5.24.1 і 5.24.2 "Зміна напрямку руху на дорозі з розділювальною смугою"
I need to get the number 5.24.1_ 5.24.2
How can regex expression be written to use one all scenario?
Read more here: Source link
