You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I implemented it as a regex in the existing config. By default it will remove emoji but you can disable it by setting the new 'emoji' regex to False. I also added some documentation:
Activity
derek73 commentedon Jun 28, 2017
This appears to be a way to remove emoji from a string:
https://stackoverflow.com/questions/26568722/remove-unicode-emoji-using-re-in-python
I implemented it as a regex in the existing config. By default it will remove emoji but you can disable it by setting the new 'emoji' regex to False. I also added some documentation:
http://nameparser.readthedocs.io/en/latest/customize.html#don-t-remove-emojis
It would be nice if you could give it a try before I push an updated release to pypi:
pip install -e git+git:https://github.com/derek73/python-nameparser.git#egg=nameparserLet me know if any problems or other ideas.
edwardotis commentedon Jun 28, 2017
Confirmed working for the following test case on python 3.5.
Input:
John Doe 😀☁
Output:
first: John
middle:
last:Doe
Thanks for the quick turnaround!