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 Automate / Using Regex in Execute...
Power Automate
Unanswered

Using Regex in Execute SQL statement and Excel as database

(0) ShareShare
ReportReport
Posted on by 6

I have 2 columns name like product name & description in excel

My Frist question is if first character in "product name" starts with Special char, need to update it as Fail using Regex
Second one is when "description" contains Chinese characters  or ??? or &nbsb; like these need to update it as Fail using Regex in Execute sql query

am trying like  [product name] like ^[&$#@]

 

Please update me on this, thanks in advance

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    Regex is not supported in SQL queries. You need to use proper SQL syntax to do this. For example, to cover the sample you shared, the clause should be 

    WHERE [product name] LIKE '&%' OR [product name] LIKE '$%' OR [product name] LIKE '#%' OR [product name] LIKE '@%'

    You need to handle each possible case separately. And then, when using the LIKE operator, the % symbol is a wildcard.

    -------------------------------------------------------------------------
    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

    I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

  • Satyanarayana Profile Picture
    6 on at

    Thanks for the reply.. is CASE statement supports SQL query!!

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    I do not understand the question. Can you please rephrase it? Also maybe provide an example?

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 Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 414

#2
11manish Profile Picture

11manish 335 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 274

Last 30 days Overall leaderboard