You are here: PSPad forum > English discussion forum > Find Number

Find Number

#1 Find Number

Posted by: maki | Date: 2020-05-27 19:33 | IP: IP Logged

I want to find all numbers - up to 7 numbers after the dot.
Range 1-79.

([1-9]|[1-6][0-9]|7[0-9])\.+[0-9]{7}$

Example:
Yes:
19.5648769
76.765
9.987650

No.
19.56487691
81.87654765
123.765

Edited 2 time(s). Last edit at 2020-05-27 19:34 by maki.

Options: Reply | Quote | Up ^


#2 Re: Find Number

Posted by: pspad | Date: 2020-05-28 04:57 | IP: IP Logged

Why is '+' after the dot? It has no meaning, but will return you 12....678 too as match
Why are you search for exactly 7 numbers after dot? Fix the content of the {}

Now you know what is wrong and you can easily fix it.

Options: Reply | Quote | Up ^


#3 Re: Find Number

Posted by: maki | Date: 2020-05-29 22:05 | IP: IP Logged

([1-9]|[1-6][0-9]|7[0-9])\.[0-9]{1,7}$

smiling smiley {n,m}

Edited 1 time(s). Last edit at 2020-05-29 22:06 by maki.

Options: Reply | Quote | Up ^






Editor PSPad - freeware editor, © 2001 - 2020 Jan Fiala, Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák, Privacy policy and GDPR