KEEP IN TOUCH

Join Newsletter

CALL NOW

Share with:


Recent Posts





August 2009

def hilite_search_criteria(pattern, search_criteria) return if pattern.nil? or search_criteria.nil? pattern.gsub!(/(]*>)|\n|\t/s) {" "} match_char = pattern =~ /#{search_criteria}/i matched_string = $~.to_s return if match_char.nil? start = match_char - 25 start = (start < 0 ? 0 : start) unless match_char.nil? p = pattern[start ...

Read More