# Analyzer to every n characters

**URL:** <https://discuss.elastic.co/t/analyzer-to-every-n-characters/231618>\
**Category:** Elasticsearch\
**Created:** [May 7, 2020, 8:39pm UTC](https://discuss.elastic.co/t/analyzer-to-every-n-characters/231618 "2020-05-07T20:39:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ben-charles](https://avatars.discourse-cdn.com/v4/letter/b/9f8e36/32.png) [@ben-charles](https://discuss.elastic.co/u/ben-charles)\
**Post date:** [May 7, 2020, 8:39pm UTC](https://discuss.elastic.co/t/analyzer-to-every-n-characters/231618/1 "2020-05-07T20:39:44Z")

</div>

I currently have an analyzer using the regular expression `\\W|_`. This splits by non-word chars and underscore. How will this handle other special characters from other languages?

Furthermore, is there a way to configure the regular expression in the analyzer to split every x characters? If the criteria is not met to split the expression, I'd like to split it after x characters regardless of what character it is. Is this feasible?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 4, 2020, 8:39pm UTC](https://discuss.elastic.co/t/analyzer-to-every-n-characters/231618/2 "2020-06-04T20:39:45Z")

</div>

Closed on June 4, 2020, 8:39pm UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
