fixed regexp for function view