filter

Mail validation with PHP filter_var() or with regular expression.

I have learned today, that it is possible to validate e-mail two ways. One way is by regular expression and the other is by filter_var() function. If anyone could tell me how strong the validation with filter_var is and if there are any recommendations or suggestions on thoughts about switching from regular expression to it, then it wou...

Regular Expression - extract digits

I have strings of text that may have the following formats: Was £39.95 Now Only £29.00 OR Was 0.95p Now 10p What is the easiest way to extract two numbers from each string, so I can subtract them later. ...

using an asp.net IHttpModule to read data sent after headers without content-length...

Hi, I'm writing an application within asp.net MVC 3 Beta. The application will receive an HTTP GET request with various headers. After this request the client sends 8 bytes of data. The client does NOT set a Content-Length header so as far as I can tell asp.net ignores the data that follows the headers. I need this data! My Request...