web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Remove character at th...
Power Apps
Answered

Remove character at the beggining of string

(0) ShareShare
ReportReport
Posted on by 2

In power apps cavnas app i have strings for example

##94032ds###ds#fflsd##dfd#

i want to remove all character # at the begging of string for example

##94032ds###ds#fflsd##dfd# -> 94032ds###ds#fflsd##dfd#

 

######94032ds###ds#fflsd##dfd# -> 94032ds###ds#fflsd##dfd#

 

How to do this ?

Categories:
  • Verified answer
    CarlosFigueira Profile Picture
    Microsoft Employee on at

    You can use the Match function to do that:

     

    Match("##94032ds###ds#fflsd##dfd#", "^#*(?<restOfString>.+)$").restOfString

     

    Regular expressions can be very useful in these scenarios, even if they are not the easiest to understand. I've found the site https://regex101.com/ useful to help explaining those. In this case, we are looking at the beginning of the string for all instances of the '#' character, followed by anything else, which I named 'restOfString' - which can then be retrieved from the result of Match.

    Hope this helps!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 342 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 258

#3
Mohsin Ali Profile Picture

Mohsin Ali 231

Last 30 days Overall leaderboard