Fix regexp for method prefix