On 01/13/2019, at 03:06, Marek Stepanek mailto:ms...@podiuminternational.org>> wrote:
> I did not know \h = horizontal white space. And it is even working with
> BBEdit. Is it mentioned in the User Manual BBEdit? Suggesting a little
> correction:
Hey Marek,
Then you'll want to contact
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
I did not know \h = horizontal white space. And it is even working with BBEdit.
Is it mentioned in the User Manual BBEdit? Suggesting a little correction:
Your search and replace is not doing what Dj was asking for: replace
+ with :
> s/\h+/ /g;
1. Replaces *one* or with one space.
On 2019 Jan 12, at 20:32, Dj wrote:
>
> 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'
Why use perl at all? Since you're using BBEdit, use BBEdit's Find & Replace.
Find (grep):
Hi Dj,
To address the shebang issue ensure the first line of your script file
includes something like:
#!/usr/bin/perl
I don’t know the first thing about Perl, fortunately replacing multiple
spaces with single spaces is a simple search and replace with grep in
BBEdit:
Search for (omitting "):
On 01/12/2019, at 19:32, Dj mailto:futurevint...@gmail.com>> wrote:
> 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'
Hey Dj,
The code you have above is the sort of thing that