# \[AS3.0\] RegExp: characters w diacritics

**URL:** <https://forum.kirupa.com/t/as3-0-regexp-characters-w-diacritics/209566>\
**Category:** flash\
**Created:** [December 10, 2006, 9:26am UTC](https://forum.kirupa.com/t/as3-0-regexp-characters-w-diacritics/209566 "2006-12-10T09:26:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![watcher](https://avatars.discourse-cdn.com/v4/letter/w/77aa72/32.png) [@watcher](https://forum.kirupa.com/u/watcher)\
**Post date:** [December 10, 2006, 9:26am UTC](https://forum.kirupa.com/t/as3-0-regexp-characters-w-diacritics/209566/1 "2006-12-10T09:26:26Z")

</div>

Hi there/here 🙂

Is there a way to allow characters with diacritics in RegExp?

ex: we would use:  
/[a-z\s]/gi  
to allow string containing alphabetical characters/words, separated by empty spaces…

but there seems to be no character-selection-group available to use when we want to allow characters with diacritics, and also **/i** performs case-insensitive match for [a-z] and [A-Z] (but not special\*\* characters w diacritics \*\*like š,ľ,č,ť,ž,ý,á,í,é… ), so how can we allow these characters using RegExp?

Is there better way than writing down all the characters with diacritics we want to allow (including their case-sensitive counterparts) …

```auto

/[a-z\säÄáÁ&#269;&#268;&#271;&#270;éÉíÍ&#318;&#317;&#314;&#313;&#328;&#327;óÓôÔ&#341;&#340;&#345;&#344;&#353;&#352;&#357;&#356;úÚýÝ&#382;&#381;öÖüÜß]/gi

```

… and pray we didnt forget anything 😛 ?

Thanks for Your care.
