[REF] refactor the way to generate the regex and improve error message
[FIX] fix import problem with 01 line