Posted on July 9th, 2007 by admin
Here is a simple javascript function which is equivalent to PHP’s preg_match function.
function preg_replace (array_pattern, array_pattern_replace, my_string) {
var new_string = String (my_string);
for (i=0; i<array_pattern.length; i++) {
var reg_exp= RegExp(array_pattern[i], “gi”);
var val_to_replace = array_pattern_replace[i];
new_string = new_string.replace (reg_exp, val_to_replace);
}
return new_string;
}
You can also use the javascript string.replace method to do the same functionality.
Filed under: PHP, JavaScript | No Comments »
Posted on July 5th, 2007 by admin
CTRL+C (Copy)
CTRL+X (Cut)
CTRL+V (Paste)
CTRL+Z (Undo)
DELETE (Delete)
SHIFT+DELETE (Delete the selected item permanently without placing the item in the Recycle Bin)
CTRL while dragging an item (Copy the selected item)
CTRL+SHIFT while dragging an item (Create a shortcut to the selected item)
F2 key (Rename the selected item)
CTRL+RIGHT ARROW (Move the insertion point to the beginning of the next word)
CTRL+LEFT […]
Filed under: Misallenous | No Comments »
Posted on July 1st, 2007 by admin
Yahoo’s planned shutdown of Yahoo Photos has begun. The Yahoo blog Yodel Anecdotal reports that they have started to close accounts and transition users over to Flickr.
i got an e-mail from yahoo. it is as follows,
Dear Yahoo! Photos user,
For some time now, we’ve supported two great photo sharing services: Yahoo! Photos and […]
Filed under: Announcements, Misallenous | No Comments »