Help regex-ing data | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 5

Help regex-ing data

So I just scraped off Sololearn's site for my next code, now I am stuck on how to extract the names. Can someone help me? https://code.sololearn.com/cu9IsRAbtCxo/?ref=app

25th Oct 2018, 9:02 AM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
8 ответов
+ 6
https://code.sololearn.com/cdPyKkMom0X0/?ref=app
25th Oct 2018, 10:31 AM
Anna
Anna - avatar
+ 3
⏩ Prometheus ⏪ it would seem you accidentally posted this question thrice. Kindly remove the duplicates 😁 https://www.sololearn.com/discuss/1559292/?ref=app https://www.sololearn.com/discuss/1559293/?ref=app
25th Oct 2018, 10:36 AM
David Akhihiero
David Akhihiero - avatar
+ 3
⏩ Prometheus ⏪ You could theoretically modify regular expressions to match emojis, but that doesn't seem to work in the playground.
25th Oct 2018, 10:52 AM
Anna
Anna - avatar
+ 2
As far as I know, emojis are just Unicode symbols. The regex pattern can be designed to match the unicode range where the emojis are stored (something like [\uxxxxx-\uyyyyy]), but it looks like Sololearn can't handle that. They couldn't be displayed in the console anyway
25th Oct 2018, 10:59 AM
Anna
Anna - avatar
+ 1
Yerucham Yeah unintended, but removed
25th Oct 2018, 10:40 AM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
0
Thanks Anna ! One small problem, emoji names don't work, how do you fix it then?
25th Oct 2018, 10:32 AM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
0
Anna All okay, but emoji names fail to show up. How to fix that?
25th Oct 2018, 10:33 AM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
- 1
Anna The emojis don't show up as emojis, but some symbols right? Is there RegEx for that?
25th Oct 2018, 10:54 AM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar