Maybe I'm misunderstanding, but can't you just do
replace "/Users/hawk/bk_clients/" with empty in myVariable
and do it all at once with no regex?
-- Peter
Peter M. Brigham
pmb...@gmail.com
http://home.comcast.net/~pmbrig
On Sep 20, 2014, at 4:02 PM, Mike Bonner wrote:
> You could change yo
> The ^ (circumflex or caret) outside square brackets means look
> only at the beginning of the target string.",
This is true in default mode of the PCRE library.
There is a multiline mode which changes this behavior; the ^ will match
the begining of every line.
To be in multiline mode, just have
The explanation of ^ that I found states, "The ^ (circumflex or caret) outside
square brackets means look only at the beginning of the target string.", so the
way I see it, if it's only looking at the beginning it's not going to repeat
through the rest of the lines, so you could use a repeat loo
You could change your shell call, and use sed inline to strip what you
don't want before sending it back to LC
Since I don't know how you're generating the list, i'm using find to do it
on .mov files
Quote the whole string, use a pipe to sed with the -e switch, surround the
string for sed with sing
You might try (?m) to switch on multiline mode at the start of your regex.
I'm pretty sure that won't work though. LC makes you use a repeat loop to
go through each line and issue the replaceText() against each one.
Hope that Thierry chimes in with a workaround for this - he's the LC regex
King.