I need a regex (Java) that will match:
XXXX.X
Where X is any number, only one number after the decimal point.
Try ^\d{4}\.\d$it if you want the whole line to match, delete ^and / or $if you want to find matches in the larger line.
^\d{4}\.\d$
^
$
. . \d+ \d{4} , \d* ( ".5" \d*\.\d > ).
.
\d+
\d{4}
\d*
".5"
\d*\.\d
4 ,
"/(^([0-9]{4})[.]([0-9]{1})$)/"
: 1234.4
, , .
"/(^([0-9]{0,})[.]([0-9]{1})$)/"
: 1234.4 45.8 +589745324744,7
Source: https://habr.com/ru/post/1781696/More articles:Фильтр Symfony для запуска до и, возможно, пропускать контроллер - filterGoogle App Engine + form validation - pythonPHP MySQL Zend-ACL - graphically display ACL: - phpIdentical If () and If give different results - .netSql Server for XML with multiple child nodes - xmlCompare two audio files for rhythm / tempo and rating in iphone - iphonedocument.write resets the body once - javascriptConnect a QListView double-click event with a method in PyQt4 - pythonСпециализация класса шаблона - c++String (dd-MM-yyyy HH: mm) to Date (yyyy-MM-dd HH: mm)All Articles