Is there a way to remove emojis, non-printable and other graphic characters from a string? I can use a regexp with a-zA-Z and such but this doesn't account for valid characters from non-ascii/non-Western languages, right?
Post by saito Is there a way to remove emojis, non-printable and other graphic characters from a string? I can use a regexp with a-zA-Z and such but this doesn't account for valid characters from non-ascii/non-Western languages, right?
I've found that this regular expression works for emojis: [^[:print:][:cntrl:]]
Post by saito Is there a way to remove emojis, non-printable and other graphic characters from a string? I can use a regexp with a-zA-Z and such but this doesn't account for valid characters from non-ascii/non-Western languages, right?