Title: Alex Kirk – Page 98 – Alex Kirk

---

![Alex Kirk](https://alex.kirk.at/wp-content/uploads/sites/2/2025/06/cropped-2025.
Alex-512x512-1-120x120.jpg)

Alex Kirk

@alex@alex.kirk.at


 **271** posts

 **270** followers

 Friends Plugin

[friends.kirk.at](https://friends.kirk.at/)

 Enable Mastodon Apps Plugin

[ema.kirk.at](https://ema.kirk.at/)

 Homepage

[alex.kirk.at](https://alex.kirk.at/)

 [ Posts & Replies ](https://alex.kirk.at/author/alex/page/98/?output_format=md&filter=posts-and-replies)
[ Posts ](https://alex.kirk.at/author/alex/page/98/?output_format=md&filter=posts)

 * 
   ## 󠀁[preg_match, UTF-8 and whitespace](https://alex.kirk.at/2011/10/01/preg_match-utf-8-and-whitespace/)󠁿
   
 * 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#”, “”,…
 * 
   ## 󠀁[Restoring single objects in mongodb](https://alex.kirk.at/2011/05/31/restoring-single-objects-in-mongodb/)󠁿
   
 * Today I had the need to restore single objects from a mongodb installation. mongodb
   offers two tools for this mongodump and mongorestore, both of which seem to be
   designed to only dump and restore whole collections. So I’ll demonstrate the 
   workflow just to restore a bunch of objects. Maybe it’s a clumsy way, but we’ll…

 [Previous Page](https://alex.kirk.at/author/alex/page/97/?output_format=md)

[1](https://alex.kirk.at/author/alex/?output_format=md) … [96](https://alex.kirk.at/author/alex/page/96/?output_format=md)
[97](https://alex.kirk.at/author/alex/page/97/?output_format=md) 98 [99](https://alex.kirk.at/author/alex/page/99/?output_format=md)
[100](https://alex.kirk.at/author/alex/page/100/?output_format=md) … [136](https://alex.kirk.at/author/alex/page/136/?output_format=md)

 [Next Page](https://alex.kirk.at/author/alex/page/99/?output_format=md)