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

string validation with alpha numeric and spaces

Hi All,

 

Please suggest on the below expression on how to include spaces on a string along with alpha numeric

Set(meetingSubject,Concat(
Filter(Split(PlainText(SelectedMeeting.Subject),""), IsMatch(Result, "[a-zA-Z0-9]" & "\s")),
Result
));
4 REPLIES 4
K-A-R-L
Level 10

Re: string validation with alpha numeric and spaces

Hi @sannadisarath ,

Can you please post a screenshot of what you are trying to achieve and what SelectedMeeting.Subject looks like. And what is on meetingSubject.

 

I'm not sure what you want to achieve but try this:

 

Set(meetingSubject,Concat(
DataSource, IsMatch(Result, "[a-zA-Z0-9]") & " "));

----------------------------------------------------------------------------
Thanks,
K-A-R-L


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If you thought this post was helpful, please give it a Thumbs Up.

 

sannadisarath
Level: Powered On

Re: string validation with alpha numeric and spaces

I have changed the code to 

Set(meetingSubject,Concat(
Filter(Split(PlainText(SelectedMeeting.Subject),""), IsMatch(Result, "[a-zA-Z0-9]") & " "),
Result
));

but i still see an issue, meeting subject is text field ex: New recored meeting!
please let me know how to remove special charecters not the spaces from that text field

K-A-R-L
Level 10

Re: string validation with alpha numeric and spaces

Hi @sannadisarath ,

 

SelectedMeeting.Subject should be Text not a table or a record.
You can try using a LookUp():

 

Set(meetingSubject,Concat(
Filter(Split(LookUp(SelectedMeetin.Subject, Condition, Result Column),""), IsMatch(Result, "[a-zA-Z0-9]") & " "),
Result
));

----------------------------------------------------------------------------
Thanks,
K-A-R-L


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If you thought this post was helpful, please give it a Thumbs Up.

 

 

 

sannadisarath
Level: Powered On

Re: string validation with alpha numeric and spaces

Hi K-A-R-L,

 

SelectedMeeting.Subject is a text field, not a table can you let me know how to do that with the text filed, i tried the option you gave, but no luck there

 

Appriciate your help!.

Helpful resources

Announcements
Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

thirdimage

Power Apps Community User Group Member Badge

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

sixthImage

Join THE global Microsoft Power Platform event series

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Microsoft Business Applications Virtual Launch

Join us for the Microsoft Business Applications Virtual Launch Event on Thursday, April 2, 2020, at 8:00 AM PST.

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (8,772)