Beginning search mode, using PCRE for regex
Nearlly finished mine mode
Added caseless mining
Finished mining mode and removed redundant strlen calls