Title: Code – Page 7 – Alex Kirk

---

# Category: Code

 * 
   ## 󠀁[munin smart plugin: ignore error in the past](https://alex.kirk.at/2013/02/07/munin-smart-plugin-ignore-error-in-the-past/)󠁿
   
 * February 7, 2013
 * As a hard drive in my server failed, my hosting provider exchanged the drive 
   with another one which obviously had some sort of error in its past, but now 
   seems to be fully ok again. I would have wished to receive a drive without any
   problems but as my server is RAID 1, I can…
 * [Code](https://alex.kirk.at/category/code/), [linux](https://alex.kirk.at/category/code/linux/)
 * 
   ## 󠀁[preg_match, UTF-8 and whitespace](https://alex.kirk.at/2011/10/01/preg_match-utf-8-and-whitespace/)󠁿
   
 * October 1, 2011
 * Just a quick note, be careful when using the whitespace character \s in preg_match
   when operating with UTF-8 strings. Suppose you have a string containing a dagger
   symbol. When you try to strip all whitespace from the string like this, you will
   end up with an invalid UTF-8 character: $ php -r ‘echo preg_replace(“#\s#”, “”,…
 * [Code](https://alex.kirk.at/category/code/), [PHP](https://alex.kirk.at/category/code/php/)

 [Previous Page](https://alex.kirk.at/category/code/page/6/?output_format=md) [Next Page](https://alex.kirk.at/category/code/page/8/?output_format=md)