# Split string after each letter into a container

**URL:** <https://www.dynamicsuser.net/t/split-string-after-each-letter-into-a-container/59467>\
**Category:** Developer Forum\
**Created:** [December 28, 2015, 2:35pm UTC](https://www.dynamicsuser.net/t/split-string-after-each-letter-into-a-container/59467 "2015-12-28T14:35:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dansch](https://avatars.discourse-cdn.com/v4/letter/d/c89c15/32.png) [@Dansch](https://www.dynamicsuser.net/u/Dansch)\
**Post date:** [December 28, 2015, 2:35pm UTC](https://www.dynamicsuser.net/t/split-string-after-each-letter-into-a-container/59467/1 "2015-12-28T14:35:31Z")

</div>

Hello everybody,

I am new here so please be patient with me 🙂

I have the following request:  
I must check if a string (for example a name like “Aysegül Özdemir-Aly”) have a special character (like “ä”, “Ä”, “ö”, “Ö”, “ü”, “Ü”, “ß” or “-”, … ).

How can I do that?

Many thanks in advance!

lG

GAZZA

---

<div class="post-metadata">

**Author:** ![MartinDrab](https://avatars.discourse-cdn.com/v4/letter/m/e0b2c6/32.png) [@MartinDrab](https://www.dynamicsuser.net/u/MartinDrab)\
**Post date:** [December 28, 2015, 3:46pm UTC](https://www.dynamicsuser.net/t/split-string-after-each-letter-into-a-container/59467/2 "2015-12-28T15:46:21Z")

</div>

The title of your thread doesn’t describe the problem - it seems to be about a particular way of solving it, which I don’t recommend.

The check can be implemented in a much more efficient way with the help of regular expressions. In AX, you can use the [match() function](https://msdn.microsoft.com/en-us/library/aa886279.aspx) for that. And if you needed more complex handling of regular expressions, you could call related .NET libraries through .NET Interop.
