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}) /

Menu