Regex help

    Date: 07/25/06 (PHP Community)    Keywords: no keywords

    Is there a way to check, with a regular expression, that only numerics, commas and dashes exist in a string -- and that it begins and ends with a numeric?

    I tried:

    /^[0-9\-\,]$/

    but this expression rejects strings that contain only numerics, commas and dashes ( ex: 06072501796-06072501798, 06072501799 )

    Source: http://community.livejournal.com/php/475414.html

« Mail Function & HTTP Errors || Points and coordinates and... »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home