Learn how to build custom Python data connectors and further customize JMP’s Data Connector Framework with the Python Data Connector Demo, available now in the JMP Marketplace!
See how to create experiments to support product design and ID useful product features. Register for June 12 webinar, 2pm US Eastern Time.
Can implement this substitution with an operation with a regex?
Created:
Oct 15, 2024 12:12 AM
| Last Modified: Oct 15, 2024 7:06 AM(5057 views)
For example, this file is a txt file.TAB spacing: Column 2 contains, column 2 contains The maximum number of rows is 5 Can you use regular substitution to replace rows with less than 5 such symbols to complete the cell with a total of 5 similar symbols? Make up as shown in the figure.
Forcing yourself to use regex is in my opinion a bad idea. In this case you could for example loop line by line, replace ~ and triangles with "" on columns two and three, check how many were replaced and then add them to the end of correct "columns".