Feeds:
Posts
Comments

Archive for the ‘regular expression’ Category

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]*)*$

Read Full Post »

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…

Read Full Post »

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>”  

 

Read Full Post »