Skip to main content
Question

split attribute with a limited character with a condition

  • May 22, 2020
  • 1 reply
  • 3 views

@takashi

Hi!

I would like to split the value of an attribute with respect to its number of characters. For example in element 1 from screen shot :

1727*hH.1729*hH.1731*hH.1733*hH.1735*hH.1737*hH.1739*hH.1741*hH.1743*hH.1745*hH.1747*hH.1749*hH.1751*hH.1753*hH.1755*hH.1757*hH.1759*hH.1761*hH.1763*hH.1765*hH.1767/hH.1769

I want to have something like:

1727*hH.1729*hH.1731*hH.1733*hH.1735*hH.1737*hH.1739*hH.1741*hH.1743

*hH.1745*hH.1747*hH.1749*hH.1751*hH.1753*hH.1755*hH.1757*hH.1759

*hH.1761*hH.1763*hH.1765*hH.1767/hH.1769

with a limited characters per line = 69 and each new line must start with a *

 

Thanks in advance for your help !

1 reply

david_r
Evangelist
  • May 22, 2020

One way is to use the TextWrapper by "tricking" it to wrap at the * character by inserting a space just before, then removing the extra space after.

Result:

Test workspace: asterisk_wrapper.fmwt


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings