Regular Expression String Length Python Function Example With Parameters