mrtechnique Posted May 30, 2019 Share Posted May 30, 2019 Is there a way to strip extra white space characters. For example, if a client sends me some content that may have 2 spaces after every period? I'd like to be able to copy everything they gave me and paste it without any double spaces after each period. Also, clients tend to send me documents with ‟ and ” which causes display issues on websites. I'd like to be able to replace these types of quotes with the standard " from my keyboard. Link to comment
deanishe Posted May 30, 2019 Share Posted May 30, 2019 You can replace the spaces and quotes easily using regular expressions. The regex “ +” (space plus) matches one or more spaces. Replace that with a single space. mrtechnique 1 Link to comment
mrtechnique Posted June 6, 2019 Author Share Posted June 6, 2019 Where would I put the regex expression? Link to comment
mrtechnique Posted June 6, 2019 Author Share Posted June 6, 2019 I guess what I'm asking is where is the Replace Utility? Is it in the Workflows section? Link to comment
mrtechnique Posted June 7, 2019 Author Share Posted June 7, 2019 Never mind. I found it. I didn't know I needed to create a workflow for this. Link to comment
deanishe Posted June 7, 2019 Share Posted June 7, 2019 6 minutes ago, mrtechnique said: Never mind. I found it. I didn't know I needed to create a workflow for this. Ah, sorry. I forgot to reply. Glad you got it working! Link to comment
mrtechnique Posted June 7, 2019 Author Share Posted June 7, 2019 I did! I'd like to also add a replace utility to replace all “” with ". I know to replace “|” with ". I tried to add another replace utility to the workflow, but it wouldn't strip the spaces and change the quotes. This is what I have now. https://www.dropbox.com/s/q0ofs79woahdwcr/Screenshot%202019-06-07%2011.20.45.jpg?dl=0 Link to comment
mrtechnique Posted June 7, 2019 Author Share Posted June 7, 2019 Never mind. I figured this out as well. I just added another replace utility between my first replace utility and the copy to clipboard output. https://www.dropbox.com/s/pmim2fql1p52axb/Screenshot 2019-06-07 11.25.13.jpg?dl=0 Link to comment
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