Jump to content

urgent code


Angelia

Recommended Posts

can anyone make me a snippet that removes every second character from a text document starting from the first character?

-h-e-l-l-o- -t-h-e-r-e

 

i got a corrupted file that has added an extra character every second character. i'd use $remove but it's a space so that doesnt really help

Link to comment
Share on other sites

yeah, there's a space between each chatacter, as well as around each space, so it's quite literally where i've put the dashes (there's a space between each character and the original spaces have become 3 spaces)

Edited by Angelia
Link to comment
Share on other sites

close but it removes all spaces because it would be three dashes in a row, not two. i tried 3 too but that didnt work either - mirc takes the 3 spaces as 1 space then processes the result

Edited by Angelia
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...