# Apply a pattern to extrafield

**URL:** <https://www.dolibarr.org/forum/t/apply-a-pattern-to-extrafield/24156>\
**Category:** CRM/SRM Modules\
**Tags:** v17, Question\
**Created:** [August 17, 2023, 3:25pm UTC](https://www.dolibarr.org/forum/t/apply-a-pattern-to-extrafield/24156 "2023-08-17T15:25:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![LesCarnets](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/l/3be4f8/32.png) [@LesCarnets](https://www.dolibarr.org/forum/u/LesCarnets)\
**Post date:** [August 17, 2023, 3:25pm UTC](https://www.dolibarr.org/forum/t/apply-a-pattern-to-extrafield/24156/1 "2023-08-17T15:25:34Z")

</div>

Hello,

I would liket to apply the following pattern [a-z0-9] (or [:alnum:]) to an extrafiels of my Third Parties (string where I want to accept only letters and numbers - The goal is to use this extra field to build URLs that’s why I cannot affort letting the user recording special characters like “space” for example there).

Anyone have an idea how we can adress this need?

Thank you for your help! 😃

Regards,
