i found a use full regular expression vaildating input string, you can use it to filter sql injection attacks while taking input for username, title ect.
^[a-zA-Z]+(([\.\- ][a-zA-Z0-9 ])?[a-zA-Z0-9]*)*$
Posted in regular expression on March 6, 2009 | Leave a Comment »
i found a use full regular expression vaildating input string, you can use it to filter sql injection attacks while taking input for username, title ect.
^[a-zA-Z]+(([\.\- ][a-zA-Z0-9 ])?[a-zA-Z0-9]*)*$
Posted in asp.net 1.1, asp.net 2, regular expression on October 20, 2008 | Leave a Comment »
hi use this regular expression for email address validation
^[A-Za-z0-9](([_\.\-]?[a-zA-Z0-9]+)*)@([A-Za-z0-9]+)(([\.\-]?[a-zA-Z0-9]+)*)\.([A-Za-z]{2,})$
Regular expression validator in asp.net would be like
Chears…
Posted in regular expression, tagged regular expression on February 1, 2008 | 3 Comments »
here are some Regular expressions for html parsing . you can use it in your application while parsing html table to fetch data from it
Table Expression = “<table[^>]*>(.*?)</table>”
Header Expression = “<th[^>]*>(.*?)</th>”
Row Expression = “<tr[^>]*>(.*?)</tr>”
Column Expression = “<td[^>]*>(.*?)</td>”