# Yang model pattern to exclude user input of \\t \\r

**URL:** <https://dmap-community.ductus.global/t/yang-model-pattern-to-exclude-user-input-of-t-r/1881>\
**Category:** YANG\
**Created:** [April 16, 2018, 10:13pm UTC](https://dmap-community.ductus.global/t/yang-model-pattern-to-exclude-user-input-of-t-r/1881 "2018-04-16T22:13:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![shwseth](https://avatars.discourse-cdn.com/v4/letter/s/c2a13f/32.png) [@shwseth](https://dmap-community.ductus.global/u/shwseth)\
**Post date:** [April 16, 2018, 10:13pm UTC](https://dmap-community.ductus.global/t/yang-model-pattern-to-exclude-user-input-of-t-r/1881/1 "2018-04-16T22:13:59Z")

</div>

Hi,

How can i write the yang model pattern so that I can exclude any “” in my input string

typedef file-path {  
type string {  
pattern “[a-zA-Z0-9/.\_-]\*”;  
}  
description  
“The complete file path”;  
}

I have tried the above, but I can still enter \r or \t where my type is file-path
