Rainy Pass Posted April 13, 2010 Posted April 13, 2010 I am trying to clean up text that contains some html code. How do I remove multiple occurrences of “< any characters >”? I am currently using a calc field containing: Let ( text= Trim(Substitute ( Descriptiton__lxt ; [" *" ;"¶" ]; ["*" ;".¶" ]; [""" ;"'" ] ; ["’" ;"'" ]; ["
Rainy Pass Posted April 13, 2010 Author Posted April 13, 2010 oops... I am trying to clean up text that contains some html code. How do I remove multiple occurrences of “< any characters >”? I am currently using a calc field containing: Let ( text= Trim(Substitute ( Descriptiton__lxt ; [" *" ;"¶" ]; ["*" ;".¶" ]; [""" ;"'" ] ; ["’" ;"'" ]; ["�" ;"®" ]; ["™" ;"™" ]; ["%" ;"%" ]; ["?" ;"/" ] ) ) & "." ; Case( // remove leading paragraph character. Left(text; 1)="<";Right(text; Length(text)-5); Left(text; 1)=".";Right(text; Length(text)-5); text )) Sample data: The hat is made from durable, 100% polyester and the mask is made of 90% polyester and 10% spandex that stretches for a comfortable fit. The Carhartt logo label appears on the front. Read more about our high-visibility line. *Polyester/spandex blend *Pull-down face mask *One size fits all
Vaughan Posted April 14, 2010 Posted April 14, 2010 You'll need a recursive function to do this. Look on BRian Dunning's web site.
Recommended Posts
This topic is 5395 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now