Regular expressions help

need a regex that matches when a number has a zero (0) at the end of it
so like
10
20
120
30
330
1000
and so on

What utility is going to use that regex? Something like that should work in any utility:

[0-9]+0[^0-9]

And this one in Perl:

\d+0\D

im putting it into a nawk, as im using solaris. I tried your first one though on this:
Regular Expression Calculator

and it doesn't work, should I just put it into my code and try it?

use '\b' to match the end of the number ,

[0-9]+0\b
1 Like

world class mate! i almost had that! jsut had the \b on the wrong side of the 0! thanks!!

#!/bin/bash
shopt -s extglob
case "$number" in +([0-9])0 ) echo "ok";; esac
# sed -n '/0$/p' infile
# grep '0$' infile