Monthly Archives: March 2009

Javascript regexp usage

ShareI found this reference very helpful because I tend to forget the difference between match, test, search and so on. Description Example RegExp.exec(string) Applies the RegExp to the given string, and returns the match information. var match = /s(amp)le/i.exec(“Sample text”) … Continue reading

Posted in javascript | Tagged , , | Leave a comment

validate http:// or https:// using regex

Share You can validate http:// or https:// using the methods below: $link = “http://site.com”;  or $link = “https://site.com”; Example: My values would be either of the two, with or without “s”. Method 1: echo preg_match(“^(http(s?))://^”, $link); I prefer this method … Continue reading

Posted in regex | Tagged , , , | Leave a comment

nofollow links

ShareI just heard about this new attribute added on links but really don’t have any idea about it. Thanks goodness to Dave Taylor that explains what is nofollow and it’s advantage on SEO. By adding this attribute rel on your … Continue reading

Posted in html, SEO | Tagged , | Leave a comment

You are invited to my party. I would appreciate if you could come.

Share Uploaded on authorSTREAM by phildavi

Posted in anything under the moonlight | Leave a comment