Hello, Thanks for the helpful pointers. I had at it for a few *hours* with regular expressions and in the search results it looked like there were some lines that shouldn't be in there. Seemed like I had it close to right, but I didn't want to delete anything accidentaly. So next (after banging head on keyboard) I tried to figure it out the Perl route. A week or two into any sort of programmatic thinking so everything is kinda starting to make sense.
One cool thing I saw this week is that people are putting regular expressions in the ios app "shortcuts" to automate things. More incentive to learn them.. Again, appreciate the help! On Saturday, January 12, 2019 at 5:32:33 PM UTC-8, Dj wrote: > Hello! > > I'm trying to replace spaces between words so a sentence like this: > > "this line has really messed up spacing" > > Looks like this: > > "This line has really messed up spacing" > > I'm only trying to change *space between words and not carriage returns > and all that.* So far I've tried placing this in the scripts folder: > > perl -pe 's/ +/ /g' > > I get the *error message:* "This file doesn’t appear to contain a valid > ‘shebang’ line (application error code: 13304)." > > Anyone know *what could be wrong, or have a better expression/way to > achieve this? Thanks!* > -- This is the BBEdit Talk public discussion group. If you have a feature request or need technical support, please email "[email protected]" rather than posting to the group. Follow @bbedit on Twitter: <https://www.twitter.com/bbedit> --- You received this message because you are subscribed to the Google Groups "BBEdit Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/bbedit.
