I have finally figured out how to validate inserted  russian text in my  tag by       mask = jQuery.extend({unitprmask:/^\d+(\.\d{1,1})?$/,expressmask:/^\d+(\.\d{1,1})?$/,qtymask:/^\d+(\.\d{1,1})?$/,yourdescdmask:/^[а-яА-Я\p{Cyrillic}0-9\s\-]{1,10}$/,URLmask:/^(https?|ftp):\/\/(.*)[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(:[0-9]{1,5})?(\/.*)?$/});   But I want to allow users to write in the  in mixed languages " Russian + Persian + Chinese + English". how can I make it happened using regex? what should I add to the above code, I have tried to add a-zA-Z to validate english letters but i wasn't successful. I am actually not able to add other languages, the one I wrote     yourdescdmask:/^[а-яА-Я\p{Cyrillic}0-9\s\-]{1,10}$/   will allow Russian text only.   Could you please help me out here?  Thanks
37476
What is the easiest way to match non-ASCII characters in a regex? I would like to match all words individually in an input string, but the language may not be English, so I will need to match things like ü, ö, ß, and ñ. Also, this is in Javascript/jQuery, so any solution will need to apply to that.
21770
Run the following SEDE query: . All the tags except kyūjitai-and-shinjitai, renyōkei, あれ, and たい-form get auto-linkified. These happen to also be the only four tags that contain characters outside the standard set of allowed characters [a-z 0-9 + # - .]. It would be nice if these would auto-linkify too. (I imagine this is even more applicable for other language sites like  - if you , you find that well over half the tags don't linkify because they contain Cyrillic characters.)
109037
I'm completing a problem set, one problem for which I literally have no idea what to do on. The graders would prefer to have a physical copy of the problem so I thought it best to include the ¯\_(ツ)_/¯ emoji as my answer, instead of something like "Dunno" or "No idea."  Option #1 is to include an image.  Beyond that I actually don't understand how this emoji works. The middle character is Japanese kana "tsu" and proves problematic - TeX wants it in math mode then renders "?" when it is.
32515
I'm after a regex that will validate a full complex UK postcode only within an input string. All of the uncommon postcode forms must be covered as well as the usual. For instance:  Matches   CW3 9SS SE5 0EG SE50EG se5 0eg WC2H 7LT   No Match   aWC2H 7LT WC2H 7LTa WC2H   How do I solve this problem?
61185
I'm trying to remove some characters from file(UTF-8). I'm using tr for this purpose:   tr -cs '[[:alpha:][:space:]]' ' ' &lt;testdata.dat    File contains some foreign characters (like "Латвийская" or "àé"). tr doesn't seem to understand them: it treats them as non-alpha and removes too.  I've tried changing some of my locale settings:  LC_CTYPE=C LC_COLLATE=C tr -cs '[[:alpha:][:space:]]' ' ' &lt;testdata.dat LC_CTYPE=ru_RU.UTF-8 LC_COLLATE=C tr -cs '[[:alpha:][:space:]]' ' ' &lt;testdata.dat LC_CTYPE=ru_RU.UTF-8 LC_COLLATE=ru_RU.UTF-8 tr -cs '[[:alpha:][:space:]]' ' ' &lt;testdata.dat   Unfortunately, none of these worked.  How can I make tr understand Unicode?
121704
I have a listing to be used in verbatim (acutally Verbatim) that uses unicode characters such as ∀, ∃, →, ∨. Using  \DeclareUnicodeCharacter{2203}{\ensuremath\exists}   they do appear in the listing, but obviously in the wrong font.  For → I got the desired result using  \usepackage{textcomp} \DeclareUnicodeCharacter{2192}{\ifmmode\to\else\textrightarrow\fi}   but I do not see how to do it for ∃, ∀ and ∨.  MWE:  \documentclass{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{textcomp} \DeclareUnicodeCharacter{2192}{\ifmmode\to\else\textrightarrow\fi} \DeclareUnicodeCharacter{2203}{\ensuremath\exists} \begin{document} \begin{verbatim} Make this → ∃ look nice! \end{verbatim} \end{document}   I’d like to stick to latex (i.e. not xetex). I would prefer to stick to the default type writer font (Computer Modern Typewriter), but if it only works with a different font (such as DejaVu Sans Mono), then that would be ok as well.
9861
How can I use Unicode-aware regular expressions in JavaScript?  For example, there should be something akin to \w that can match any code-point in Letters or Marks category (not just the ASCII ones), and hopefully have filters like [[P*]] for punctuation, etc.
115347
My pages contain German characters and I have typed the text in between the  HTML tag, but the browser views some characters differently. Do I need to include anything in HTML to properly display German characters?  &lt;label&gt; ausgefüllt &lt;/label&gt;
112667
I am writing an article in English, with some pages in Russian.  \documentclass[12pt]{article}  \usepackage[T1,T2A]{fontenc}  \usepackage[utf8]{inputenc}  \usepackage[russian,english]{babel}  \usepackage{newtxmath} \usepackage{newtxtext} \begin{document}  hello \textbf{hello}  \selectlanguage{russian} привет \textbf{привет}  \end{document}   Output:  hello hello привет привет  I am using \selectlanguage{} to switch between languages when needed.  However, I noticed that when I try to use \textbf{} when in Russian language mode, it does not work because of newtxtext, which I am using for math formulas.  Does anyone know how to solve this problem?  Thank you.
74066
I have an account on Stack Overflow and also on Russian Stack Overflow. I can ask questions on Russian Stack Overflow, but it always displays the phrase "Finish registration". I have tried logging in by different methods — Facebook, Google, etc. — but it still says that my registration is not finished. Can someone help me with it? or explain what I should do there to finish the registration?  P.S: I can't write questions in Meta Russian Stack Overflow because it says that my registration is not finished.  P.S.S: I have already tried "Click the "register" link at the top of the page." it brings to the login page with the phrase "Finish signing up by using any of the following options:". I have already tried all options there. I also can't merge them because they already linked.
27187
Is there a way to convert a regular form and add placeholders with a module, or should this be done with a form template or with jQuery?
59310
I can't create a post with the .  There are errors for both the Japanese and Chinese characters.  Here is the post in question . It is peculiar that it supports 59 languages besides Japanese and Chinese.
68712
I am working on a text written in Italian and Chinese and I need to extract only Chinese characters using AWK. How can I do this?  I tried:  [The range of Chinese Unicode chars is 4E00 thru 9FFF (344 270 200 thru 351 277 277) so the test should be &gt;"\343" and &lt;"\352" (to avoid picking up any 4 char UTF-8 codes)]:  { f=0; for ( i=1; i&lt;=length; i++) if(substr($0, i, 1)&gt;"\343" &amp;&amp;substr($0, i, 1)&lt;"\352") f = 1   print $f }   But there is an error or more errors. I can't find it / them
118546
Is there a regular expression that matches valid regular expressions?   (I know there are several flavors of regexps. One would do.)
107001
I want to include some Cyrillic with a TeX Gyre Pagella text and math font document. I'm using TeXLive 2019.  As indicated in , running pdflatex on the following source works just fine:  \documentclass{article}  \usepackage[T1,T2A]{fontenc} \usepackage[russian,main=english]{babel} \usepackage{paratype} \usepackage{tgpagella} \usepackage{substitutefont} \substitutefont{T2A}{\rmdefault}{PTSerif-TLF}  \usepackage{amsmath}  \usepackage[math]{blindtext}  \begin{document}  The topologist is {\Russian Алекс\'{а}ндров}.  \blindmathpaper  \end{document}   However, running xelatex on the following surce produces output from which the indicated Cyrillic just disappears:  \documentclass{article}  \usepackage[T2A,T1]{fontenc} \usepackage[russian,main=english]{babel} \usepackage{amsmath} % load here to avoid \dddot clash \usepackage{fontspec} \usepackage{paratype} \setmainfont[Ligatures=TeX]{TeX Gyre Pagella} \usepackage{substitutefont}% \substitutefont{T2A}{\rmdefault}{PTSerif-TLF}%  \usepackage{unicode-math} \setmathfont{TeX Gyre Pagella Math}  \usepackage[math]{blindtext}  \begin{document}  The topologist is {\Russian Алекс\'{а}ндров}.  \blindmathpaper  \end{document}   Question: How should this second source be fixed so as to allow the Cyrillic to appear, too?  (I did put Map paratype-truetype.map into my local updmap.cfg file and did run updmap-user.)
106064
I've seen a similar question on BSE about entering foreign languages into 3D Text, but it doesn't help. I've tried using two different fonts (both of which support Russian). I've tried enabling International Fonts in Blender's User Preferences, but it doesn't work as well. It either types English text with Greek letters or displays empty vertical rectangles.   If anyone has been able to add text in any foreign language, please let me know.  I actually found out that it can be easily done through Text Editor, which would be probably the best way for me since I would prefer to paste my text. Can anyone perhaps guide me through?
74243
What symbols/characters are not allowed in tags?