Fix ignore regexp generation

Fixed the regexp generation.
But tests still does not pass )