Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

199
Views
Is there any way to validate emojis without using regex with an unicode flag?

(:

I'm working on some input validation with js and one of the criteria is that the user is not allowed to input emojis.

This is the code that I was using originally is:

emojiValidation: function (userInput) {
   if (new RegExp("\\p{Extended_Pictographic}", 'u').test(userInput)) {
      return true;

   }
   
   return false;

This function is being called from a js file but the application is built using asp.net

The problem I'm facing is that IE does not recognise the Unicode flag, so is there an IE-friendly way to detect emojis?

IE console error

Thank you!

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!