Validation

i want to covert this php code to Java, so that it can validate telephone numbers:php code: (!ereg('^(07|08|09|070|077|078|079)[0-9]+$',$cell))the tel numbers are 10, no spaces in between.
[211 byte] By [Kwena] at [2007-11-27 3:49:09]
# 1
Did you try using a regex as suggested in your post a couple of hours ago: http://forum.java.sun.com/thread.jspa?messageID=9655358 ?
pbrockway2a at 2007-7-12 8:52:59 > top of Java-index,Java Essentials,New To Java...