Make regex for detection of content smarter. Add automatic mode