Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Nietzsche
Helper IV
Helper IV

Why is there an extra double quotation mark (four in total) in the Text.BetweenDelimiter function?

Hello, 

I am trying to learn M language's Text.BetweenDelimiter function.

 

I don't understanding where there are four double quotation marks needed when there is only one double quotation mark acting as the delimiter in the data?

 

Nietzsche_0-1715509448902.png

 

 

Thank you.

1 ACCEPTED SOLUTION
OwenAuger
Super User
Super User

Hi @Nietzsche 

In M, a literal text value is generally represented by characters surrounded by a pair of double-quote characters. To include an actual double-quote character itself in a text literal, one way is to "escape" it as two double-quote characters.

 

In your example, the 2nd and 3rd arguments of Text.BetweenDelimiters are each a single double-quote character, which is represented by an escaped double-quote (2 double-quote characters) between a pair of double-quote characters, so 4 double-quote characters in total.


See here for a good explanation.

 

regards


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
Twitter
LinkedIn

View solution in original post

1 REPLY 1
OwenAuger
Super User
Super User

Hi @Nietzsche 

In M, a literal text value is generally represented by characters surrounded by a pair of double-quote characters. To include an actual double-quote character itself in a text literal, one way is to "escape" it as two double-quote characters.

 

In your example, the 2nd and 3rd arguments of Text.BetweenDelimiters are each a single double-quote character, which is represented by an escaped double-quote (2 double-quote characters) between a pair of double-quote characters, so 4 double-quote characters in total.


See here for a good explanation.

 

regards


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
Twitter
LinkedIn

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Top Solution Authors
Top Kudoed Authors