Improved regexp for erlangFunc