Escaping quotes

From Planfix
Revision as of 13:43, 28 March 2024 by Dmitri (talk | contribs) (Created page with "{{#seo: |title=Escaping quotes |titlemode=append |keywords=Escaping quotes, planfix, functions, quotes, escaping |description=Escaping quotes }} If one of the arguments of a function is a string with quotation marks, then you must escape these internal quotation marks. <pre>FUNCTION ("string \"quotation mark")</pre> For example, there is a string, and you need to obtain a link: <pre><a href="https://site.com/offer/anglegrinder-1092">Brushless a...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

If one of the arguments of a function is a string with quotation marks, then you must escape these internal quotation marks.

FUNCTION ("string \"quotation mark")

For example, there is a string, and you need to obtain a link:

<a href="https://site.com/offer/anglegrinder-1092">Brushless angle grinder</a>


Use the function REGEXPFIND, make sure to escape the inner quotation marks around the link (highlighted in red):

REGEXPFIND({{Task.String for link}};"(?<=href=\").*?(?=\")")


In the end, you will obtain the desired link in the calculated field:

https://site.com/offer/anglegrinder-1092

All escapable special characters

Written Inside the String Remains After Processing
\" -> "
\\ -> \
\n -> newline character
\t -> newline character


Go To