Tuesday, April 30, 2013

javascript string replace regex

 function remove(key){  
      var reg=new RegExp('(^|,)'+key+'(,|$)');  
      new=old.replace(reg,',');  
      return new  
 }  

Friday, April 12, 2013

Citibank Weekly 30% Cash Back


  1. The promotion starts on 13th April and ends on 21st June 2013.
  2. There will be 10 weekly cycles, each starts from Saturday and ends on the following Friday, total weekly cash back is capped at RM 50000. One principal cardmember can get maximum RM 150 cash back per week on a first-come, first-served basis.
  3. you need to swipe minimum one or more transaction each on groceries, dining and petrol, with a cumulative spending of RM 500 on everything within that week.



Full terms and conditions