Mubashshsir Hasan Posted June 17, 2022 Share Posted June 17, 2022 This is a snippet with my string in it. 'lsrnx1b[00mx1b[01;31mexamplefile.zipx1b[00mrnx1b[01;31m' The string was produced from an SSH command I ran. I can't use the string as it is since it contains ANSI-standard escape sequences. How can I delete the escape sequences programmatically so that the only part of the text that remains is 'examplefile.zip' Link to comment Share on other sites More sharing options...
Gaia Paolini Posted June 20, 2022 Share Posted June 20, 2022 This seems a general Python question, not related to Python data functions in TIBCO Spotfire. There is a Stack Overflow discussion and possible answer for a similar question here: https://stackoverflow.com/questions/14693701/how-can-i-remove-the-ansi-e... Link to comment Share on other sites More sharing options...
Recommended Posts
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