cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Talha
Level: Powered On

Find Special Characters in Textbox

Hi.,

I have a multiline Textbox., Users are going to enter the Text value. If users are enter any Special Character, i need to notify in label..

if User enter as PowerApps& then we need to inform you have enter a special char &.

 

So i need to avoid this list of letters &_,.';:/""!@$%^+=\|<>{}

 

this is possible in Textbox..

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
bean
Level 8

Re: Find Special Characters in Textbox

Hi,

 

What you're trying to do should be possible to achieve. I've spent too long trying to get this going, but I'm sure it will work if you spend some time trying to work out the regular expression.

 

See https://powerapps.microsoft.com/en-us/tutorials/function-ismatch/

 

I'd reccomend doing something like:

If(
IsMatch(TextInput1.Text, "Your regular expression"),
"The field cannot contain the following characters: &_,.';:/""!@$%^+=\|<>{}"
)

 

Sean 

1 REPLY 1
Highlighted
bean
Level 8

Re: Find Special Characters in Textbox

Hi,

 

What you're trying to do should be possible to achieve. I've spent too long trying to get this going, but I'm sure it will work if you spend some time trying to work out the regular expression.

 

See https://powerapps.microsoft.com/en-us/tutorials/function-ismatch/

 

I'd reccomend doing something like:

If(
IsMatch(TextInput1.Text, "Your regular expression"),
"The field cannot contain the following characters: &_,.';:/""!@$%^+=\|<>{}"
)

 

Sean 

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

SecondImage

PowerApps Monthly Community Call

Tomorrow, September 18th at 8am PDT

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 95 members 4,289 guests
Please welcome our newest community members: