Help with a Word Macro to remove certain leading and\or ending characters

%3CLINGO-SUB%20id%3D%22lingo-sub-2595561%22%20slang%3D%22en-US%22%3EHelp%20with%20a%20Word%20Macro%20to%20remove%20certain%20leading%20and%5Cor%20ending%20characters%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2595561%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%3EI%20wonder%20if%20someone%20could%20help%20me%20create%20a%20macro%20that%20will%20remove%20certain%20leading%20and%5Cor%20ending%20characters.%20For%20example%2C%20in%20the%20following%20line%20of%20text%20(which%20has%20no%20%5Ep%20line%20breaks)%2C%20I%20want%20to%20remove%20the%20%E2%80%9C%3B%20%E2%80%9C%20(semi-colon%20and%20space)%20(from%20the%20beginning%20of%20the%20line%20and%20the%20%E2%80%9C%3B%E2%80%9D%20from%20the%20end%20or%20the%20line%20(without%20removing%20any%20of%20the%20%E2%80%9C%3B%20%E2%80%9C%20characters%20in%20the%20middle%20of%20the%20line%20between%20the%20other%20words.%20%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%3B%20and%3B%20are%3B%20at%3B%20Browse%3B%20conversations%3B%20groups%3B%20happen%3B%20interest%3B%20join%3B%20most%3B%20of%3B%20ones%3B%20product%3B%20that%3B%20the%3B%20through%3B%20where%3B%20you%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EMake%20sense%3F%20Thank%20you%20so%20much!%20%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2595561%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EMacros%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20Apps%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Occasional Visitor

I wonder if someone could help me create a macro that will remove certain leading and\or ending characters. For example, in the following line of text (which has no ^p line breaks), I want to remove the “; “ (semi-colon and space) (from the beginning of the line and the “;” from the end or the line (without removing any of the “; “ characters in the middle of the line between the other words.

 

; and; are; at; Browse; conversations; groups; happen; interest; join; most; of; ones; product; that; the; through; where; you;

  

Make sense? Thank you so much!

0 Replies