Hello,
I want to view in HtmlText a chemical formula. I found this Topic : https://powerusers.microsoft.com/t5/Building-Power-Apps/Formula-help/m-p/612121#M193042, It's very good, but it's not complete. I modify the regexp, and it's Ok on http://regexstorm.net/tester site, but when i use it in PowerApps it's don't work, only the first number is converted
Substitute( ipt_texte.Text; First( MatchAll( ipt_texte.Text; "(?<IdNumber>(?<=([A-Za-z]|\)))\d+)") ).FullMatch;"<sub>" & First( MatchAll( ipt_texte.Text; "(?<IdNumber>(?<=([A-Za-z]|\)))\d+)") ).FullMatch & "</sub>" )
i want : 2H3PO4,6H2O to be converted in 2H<sub>3</sub>PO<sub>4</sub>,6H<sub>2</sub>O
And 2(Na3HPO4)6 to be converted in 2(Na<sub>3</sub>PO<sub>4</sub>)6
Thank you very much and sorry for my very bad english
Dom

Report
All responses (
Answers (