[BUGFIX] Fix regular expression
[TASK] Add new argument 'rewrite'