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
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 

View solution in original post

1 REPLY 1
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 

View solution in original post

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

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

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors
Users Online
Currently online: 126 members 5,360 guests
Please welcome our newest community members: