[libvirt] [PATCHv6 1/5] virstring.h/c: Util method for finding regexp patterns in some strings