Find a regular matching number and the first decimal point

exm: "123456." Matching returns: "123456."


/^\d+\.{1}/

you need to think clearly about the situation:

    Is the
  1. number required?
  2. Is the
  3. number in the starting position?
  4. are there other characters between numbers and dots?

A simple example

  

/ ^ (\ d +\. {1}) /

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e5f182-45802.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e5f182-45802.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?