Re: Possible with Grep?

2024-02-28 Thread Mike Pasini
I did this once upon a time but had to use separate replacements for each case pattern. Here's an example you can run in BBEdit: #!/usr/bin/env perl @data = ( "word","Word","WORD"); $mask = "%-10s >> %s\n"; for $datum (@data) { printf $mask, $datum, fix($datum); print "\n"; } sub

Re: Need Grep Pattern

2024-02-15 Thread Mike Pasini
Let's describe the pattern you are trying to split. There's more than one way to do that (as the replies to you query show) but by focusing on a general pattern (what must always be true about your original text), we can make a more reliable regexp. You want to capture everything up to the

Re: AppleScript to upload front-displayed file to correct location via FTP?

2019-06-21 Thread Mike Pasini
I use a Keyboard Maestro palette full of scripts based on the Execute Shell Script action to upload and refresh files on my site. The approach is different for uploading a new directory of files and for uploading a single file but both rely on the built-in Unix utility curl to do the dirty

Re: Tricky regex question

2019-02-02 Thread Mike Pasini
On Saturday, February 2, 2019 at 9:45:40 AM UTC-8, jgill wrote: > > I need to identify chord lines and non-chord lines so that I can style > them differently on a web page. Remember, I'm not just looking for [A-G] > but A7, Am, A#, A♭dim etc > > Yep, it's tricky. This

Re: Noob trying to improve on these grep / expressions

2018-12-31 Thread Mike Pasini
perl pre-installed? Or is > it a "module" than can be run somehow from within BBedit? Thanks for the > patience, I'm not really a programmer, just want to look at questions posed > from my journal entries over time. > > On Monday, December 31, 2018 at 6:46:24 AM UTC-8, Mi

Re: Noob trying to improve on these grep / expressions

2018-12-31 Thread Mike Pasini
Dj, Process Lines processes *lines* not sentences. So any paragraph that has a sentence with a question mark in it would match searches for strings with question marks. Identifying a sentence is not a simple task. But there's a Perl module to