The regex for a simple case -


can give me regular expression validate string _ _._ _ _ numbers, point @ 3rd position.

well, ^\d\d\.\d\d\d$ (or ^\d{2}\.\d{3}$), depending on regex engine you're using.

depending on sort of matching function you're using, may not need ^ , $ (start , end) markers either.

if engine older 1 doesn't recognise \d, can use [0-9] instead.


Comments

Popular posts from this blog

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -