On Wed, Aug 10, 2016 at 02:27:26AM -0700, irep wrote:
> Thank you very much Rich and Charlie
>
> @Rich
>
> I did what you wrote and placed it as a .py file in Applications
> support>BBedit>Text Filters.
> In BBedit, I can see the new menu item and use it but the quoted-printable
> characters
On Sun, Jun 12, 2016 at 05:00:59AM -0500, Christopher Stone wrote:
> This Perl filter will probably do the job for you and is fairly easy to
> understand.
>
> #!/usr/bin/env perl -sw
>
> my $cntr = 1;
>
> while (<>) {
>if ( m!(^.*.*)! ) {
> print "$1".sprintf("%03d", $cntr++)."$3\n";
On Mon, Apr 04, 2016 at 09:56:00PM -0700, Michelle wrote:
> When I run multi-file searches, the results window does not list the files
> in proper, numerical order, which is very frustrating and inconvenient
> (especially when working with thousands of numbered files). For example,
> if my
If the problem you're trying to solve is showing only the images you care
about in the Net panel, have you tried using Chrome? Its Developer Tools
Network panel has a filter feature, unlike Firebug.
Ronald
--
This is the BBEdit Talk public discussion group. If you have a
feature request or
On Tue, Mar 31, 2015 at 06:13:23AM -0500, Christopher Stone wrote:
As far as I know regex cannot be made to do that, but through the magic of
Perl...
#! /usr/bin/env perl
use strict; use warnings;
#
while () {
s/\d+/@{[$+1]}/g;
On Sun, Jan 18, 2015 at 06:12:21PM -0800, San wrote:
Thanks, I'm sure you're right. I should have seen that.
On the broader question of whether I need to fix this at all... does the
fact that a function doesn't balance in BBEdit imply that the function is
brittle, i.e. might throw an error
On Fri, Dec 19, 2014 at 07:17:00AM +0100, Marek Stepanek wrote:
Thank you Charlie!
I tried nearly everything. I added use utf8 as you suggested; I saved
the input file with every imaginable encoding (utf-16/8 with or without
BOM) - no help. The search of \x{D83D}\x{DE18} in BBEdit is
And now that I catch up on the thread, I see you already found the
solution. Well done! \x{1F44F}
Ronald
--
This is the BBEdit Talk public discussion group. If you have a
feature request or would like to report a problem, please email
supp...@barebones.com rather than posting to the group.
On Sat, Apr 26, 2014 at 07:50:37AM -0700, David wrote:
Can someone help me craft (or just create it for me...) a GREP search that
allows me to search for days with x number of legs? I can easily change the
x parameter in the GREP search.
Hello again. :)
Do you want to find days with exactly
On Mon, Feb 17, 2014 at 09:32:24PM -0800, Alan Truly wrote:
Another case to be wary of is if you have double quotes in your text. They
are encoded in the CSV as 2 double quotes.
So for example:
name story
George He said, Hello!
JeffI
On Fri, Sep 27, 2013 at 01:48:45PM -0600, LuKreme wrote:
searching: ^[^/]+\/
this matches across lines
file1
file2
file3
path/to/file
since when does + match across line breaks?
Or am I misremembering?
[^/] means: match any character other than a forward slash.
+ means: match one
On Wed, Sep 18, 2013 at 11:22:04AM -0700, gala...@mac.com wrote:
In the example, I wish to update a tag with the 'bar' attribute giving it a
specific value whether the attribute exists or not. I can do this but not
without sometimes ending up with duplicating thet attribute or issues like
On Mon, Jul 29, 2013 at 05:00:47PM -0700, Rick Gordon wrote:
Wouldn't that change multiple returns to a single return, as well, though?
No, because the script processes one line at a time.
Ronald
On 7/30/13 at 12:28 AM +0100, John Delacour wrote in a message entitled
Re: Searching for
Note that the overall structure of the script could be improved. It
currently matches the same pattern three times:
while () {
if (/.../) {
while (/.../) {
s/.../.../;
}
print;
} else {
print;
}
}
s///g already encompasses the function of the conditional and the
On Fri, Mar 01, 2013 at 12:48:53PM -0700, LuKreme wrote:
Sometimes after running a grep I will end up with something in a worksheet
like:
mv This is a File! 20130301 - This is a File!
Which fails if I try to execute it because of the !.
I have to go back and convert it to something
On Sat, Feb 09, 2013 at 05:27:41PM -0700, Bucky Junior wrote:
Learning Perl, Schwartz Phoenix, O'Reilly
Don't forget Intermediate Perl, also from O'Reilly.
Programming Perl, Wall, Christiansen, Orwant, O'Relly
Ronald
--
--
You received this message because you are subscribed to the
On Thu, Jan 24, 2013 at 09:51:25AM -0500, Adam Engst wrote:
Man, you're going to make me learn perl grep syntax, aren't you? :-)
I see roughly how to do it, and I can do simple substitutions in perl,
but I'm having trouble getting the more complex ones to run. I've
figured out that you need
On Thu, Jan 17, 2013 at 11:10:05AM -0500, Adam Engst wrote:
Thanks, John! I've never learned any perl, so I can't really parse
what your script is doing, but it's not doing quite what I need. Take
a look at these two files for a before and after view:
On Tue, Nov 27, 2012 at 11:48:20AM -0300, Francisco A. Hirsch wrote:
I have lots of documents that have, dispersed through the text, upper cases
lines.
These are lines that start at the left margin and end with a carriage return.
There may be . ; - interposed through the text.
I need to
On Wed, Oct 31, 2012 at 10:40:21AM -0600, LuKreme wrote:
I want to grep for words in a file that contain 'a' 'b' and 'c' in any order.
I also want to find words that contain two c's, even if not together (so
access and chance).
I might even want words with two c's AND a and b, again in any
On Mon, Sep 03, 2012 at 08:56:13AM -0700, Kendall Conrad wrote:
#!/usr/bin/perl
my $str = '\bthe\b';
my $iter = 0;
while () {
if ($_ =~ m/${str}/){
my $n1 = $_;
while ($n1 =~ m/(${str})/) {
$iter++;
$n1 =~ s/(${str})/$1${iter}/;
}
print $n1;
}
else {
print $_;
}
}
I hope Kendall
On Tue, Jul 24, 2012 at 04:42:55AM -0700, Melissa wrote:
I'm hoping someone can help me work this one out. I have text in this
format:
1 Replaced '1:2:333:4' with '1:2:333:4'
12 Replaced '1:2:444:10' with '1:2:444:7'
105 Replaced '1:2' with '1:3'
200 Replaced '1:2:7' with '1:2:70:9'
On Tue, May 22, 2012 at 06:25:35PM -0400, Ronald J Kimball wrote:
#!perl -p0
s{(div class=topic)(.*?)(/div)}
{ ($x = $2) =~ s!([A-Z]+)!\L\u$1!g } $1$x$3 sge;
__END__
I'm back! Here's what's going on with this script:
#!perl -p0
-p wraps the script in an implicit loop that reads
On Mon, May 21, 2012 at 05:41:50AM -0700, RobS wrote:
On Wednesday, 11 April 2012 22:25:26 UTC-3, Ronald J Kimball wrote:
If you'd rather insert the numbers into the HTML, you would need a script
of some kind. Here's a simple one in Perl, which also replaces existing
numbering, if any
On Fri, Apr 20, 2012 at 09:56:48AM +0200, Roland Küffner wrote:
Assuming you already did your first step resulting in
Am 19.04.2012 um 19, 22:54 schrieb Brad Ummer:
h3a name=This is some string of variable lengthThis is some string of
variable length/a/h3
You could search for:
On Mon, Apr 16, 2012 at 10:54:55AM -0700, David wrote:
I need some Grep help.
I need to remove this type of entry from a large file.
No Fly List:
101508
100698
Other options
ignore the quotation marks, I added them to illustrate the start and
end of the string.
Each
On Wed, Apr 11, 2012 at 03:27:58PM -0700, Ken Lanxner wrote:
Hi. I have a long definition list and need to number each dt so that
dtfirst item/dt
ddfirst definition/dd
dtsecond item/dt
ddsecond definition/dd
becomes
dt1. first item/dt
ddfirst definition/dd
dt2. second item/dt
On Mon, Mar 26, 2012 at 04:06:40PM -0500, Christopher Stone wrote:
On Mar 26, 2012, at 15:39, Rick Gordon wrote:
FIND:
(th scope=row.?*)/td
__
Hey Rick,
Didn't you switch up your non-greedy modifier?
Find:
(th
On Wed, Mar 07, 2012 at 07:11:00PM -0800, Claude wrote:
I need to remove multiple email addresses from a large list. Is there
a way to compare two files and remove the addresses in one file from
the other file?
That's not necessarily something you would do with grep.
You could do it with a
On Fri, Dec 30, 2011 at 10:44:57PM -0500, goo...@dmzgraphics.com wrote:
I have a site hosted with GoDaddy and they do not have good web site
statistics as part of the package that I can locate. I decided to go with
Google Analytics. Now after I have added the javascript code in the head,
On Sat, Dec 24, 2011 at 08:17:54PM +, Phil Dobbin wrote:
On 24/12/11 19:57, Bruce Van Allen b...@cruzio.com wrote:
Here's a find pattern that selects the first N lines in BBEdit:
\A([^\r]*\r){N}
So you would use:
\A([^\r]*\r){1217}
At minimum you could save this search
David sent me a long test file off-list. Here's an improved regex that
works in BBEdit:
(?mx)
(^THIS\ IS\ TRIP\ NUMBER.*\r
(?:\S.*\r)*
\r
(?(?:
(?:[ \t]*\d.*\r)+
[ \t]*-+.*\r
)*)
(?:[ \t]*\d.*\r){3}
[ \t]*\(.*\rTHE\ CALCULATED\ CREW\ COST.*\r
)
I just had to add (? ) around the
On Wed, Nov 30, 2011 at 09:46:51AM -0800, David wrote:
Ronald,
Thanks. What would be the best way to edit your regex so I can simply
paste it into the BBEdit find dialog box?
I am not in front of a Mac at present, but I believe it should work in
BBEdit as is.
Ronald
--
You received this
Now that I'm in front of a Mac, if I change each \n to \r, as Doug advised,
the regex does indeed work in BBEdit.
(?mx)
(^THIS\ IS\ TRIP\ NUMBER.*\r # initial header
(?:\S.*\r)* # any additional headers
\r
On Fri, Nov 18, 2011 at 08:07:37AM -0800, Linda wrote:
On further inspection, I was wrong about it being hyperlinks. It is
named anchors that I want to remove. I want to leave the hyperlinks
in the document.
Do you mean that you want to remove tags like this a name=section1?
This would
On Thu, Nov 17, 2011 at 09:04:28AM -0800, Linda wrote:
I have a huge document (a book really) that was originally created in
Word (don't know the version). I saved it as an HTML and am trying to
clean it up before breaking it into hundreds of HTML documents. Word
put about 2000 hyperlinks
On Tue, Nov 01, 2011 at 05:41:27PM +0100, John Delacour wrote:
Yes, just use a switch:
#! /usr/bin/perl
use strict;
my $switch_on;
while () {
$switch_on = 1 if /caption/;
$switch_on = 0 if s/td/th/g;
print;
}
__END__
What is the purpose of $switch_on here? You set it, but you
On Thu, Oct 27, 2011 at 03:02:33PM -0400, Ronald J Kimball wrote:
my $re =
'\b(' . join('|', sort { length $b = length $a } keys %dict) . ')\b';
I just realized I forgot one thing. This should be:
my $re =
'\b(' .
join('|', map \Q$_\E, sort { length $b = length $a } keys %dict
On Sun, Oct 23, 2011 at 01:50:08PM -0600, Doug McNutt wrote:
These are so much fun...
[ \t]*?\t[ \t]*
any number of spaces or tabs, including none of them, followed, without being
greedy, by a required tab and some more spaces or tabs.
whonoze? All regular expressions are experimental
On Thu, Oct 20, 2011 at 11:17:23AM -0700, dp wrote:
I need to find and replace everything between and including the
delimiters
!-- Begin value list --
and
!-- End value list --
The text to be replaced includes returns. Early attempts with (.*)
found only the opening delimiter and the next
On Thu, Oct 20, 2011 at 12:01:45PM -0700, dp wrote:
On Oct 20, 1:33 pm, Ronald J Kimball r...@tamias.net wrote:
Use .*? instead of .* for non-greedy matching.
Thanks, Ronald. Unfortunately, all that results is a system beep.
Here's what I've got. Have I misunderstood you?
(!-- Begin
On Thu, Oct 20, 2011 at 12:58:13PM -0700, dp wrote:
On Oct 20, 2:22 pm, Ronald J Kimball r...@tamias.net wrote:
On Thu, Oct 20, 2011 at 12:01:45PM -0700, dp wrote:
On Oct 20, 1:33 pm, Ronald J Kimball r...@tamias.net wrote:
Use .*? instead of .* for non-greedy matching.
Thanks
On Wed, Oct 05, 2011 at 07:52:18PM +0200, Lřseth Tor Rafsol wrote:
On Oct 5, 2011, at 7:29 PM, Ronald J Kimball wrote:
If you think about it another way, you want to find words that are either
1-5 characters long or 7+ characters long:
^(?:\w{1,5}|\w{7,})$
Thank you for that one
On Sat, Oct 01, 2011 at 03:07:09PM -0700, archaeal wrote:
Hello all,
I would like to identify or eliminate pairs of words from different
lines.
An example (all words are seperated by a tab:
53_G16I9RF01EUP2C 53_G16I9RF02JZUJU
53_G16I9RF02JZUJU 53_G16I9RF01EUP2C
53_G16I9RF02JZV1E
On Sat, Sep 24, 2011 at 01:03:15AM -0700, Rick Gordon wrote:
How can I set up a grep search that will repeat looping through the document
until all instances have been processed?
For instance, say I've set up markers (« and ») around target source strings,
and want to process thos strings
On Sat, Sep 24, 2011 at 11:11:10PM +0100, John Delacour wrote:
At 16:33 -0400 24/9/11, Ronald J Kimball wrote:
.. Here's a Perl script that does it:
#!perl -p
s{(«)([^»]+)(»)}{my $x = $2; $x =~ tr,A-Za-z0-9 -,,cd; $1$x$3}ge;
__END__
It works with this:
one «abç» two «abc
On Sun, Sep 25, 2011 at 12:34:20AM +0100, John Delacour wrote:
The following Text Filter will, so far as I can tell, do the job. I
have even tried putting Chinese characters withing the guillemets.
It's probably far more longwinded than it needs to be but it works.
On Sun, Sep 25, 2011 at 10:13:25AM +1000, Charlie Garrison wrote:
Rather than:
use encoding 'utf-8';
Try:
use encoding 'utf8';
It could be that 'utf-8' is an alias for 'utf8', so may not make
any difference, but 'utf8' is the correct value.
I get the same result, unfortunately. I
On Sun, Sep 25, 2011 at 01:24:35AM +0100, John Delacour wrote:
I'm not sure. Both the target file and the filter script were
encoded as my default UTF-8 no bom with UNIX linefeeds, but even if I
change the encodings in the files it works fine. I see roughly what
is happening but it's way
On Wed, Sep 21, 2011 at 07:42:04AM -0700, Brian wrote:
I have an XML document which uses self-closing tags containing id
attributes of varying length for a variety of different elements. I
need to convert these to opening and closing tags which contain the
attribute value. For example I need
On Fri, Sep 16, 2011 at 12:06:37AM +1000, Webmaster wrote:
I have 31,102 HTML documents. Each one contains one verse from the KJV Bible.
Currently, these files are named consecutively like this:
KJV.1.html
KJV.2.html
KJV.3.html
KJV.4.html
KJV.5.html
The title tag
On Tue, Sep 06, 2011 at 07:50:30AM -0700, jefferis wrote:
Hi,all. I'm trying to do the research and learn the proper syntax, but
I keep getting confused by the web page descriptions. Just a little
background: I am a visual learner. I was great in Geometry but my
algebra teacher said Jeff tries
On Fri, Sep 02, 2011 at 08:09:46AM -0700, Robert M. Münch wrote:
That first asterisk also looks suspicious to me. Should there be a period
before it or something?
.* would mean every character 0 or more times. With the character
class in front and the + it should mean: These characters 1
On Thu, Sep 01, 2011 at 09:11:15AM -0700, Robert M. Münch wrote:
Hi, I try to create a code less language module for Rebol. So far so
good. But I'm struggling to get the Function Pattern stuff to work.
This is the pattern I currently use:
string(?x: (?Pfunction
On Wed, Aug 17, 2011 at 11:55:07PM -0400, Robert A. Rosenberg wrote:
The other two types are those that you are talking about (tags with
class= and id= parms). There is NO way that these can be
automatically applied or inserted into the HTML since they get used
when the coder explicitly
On Thu, Aug 18, 2011 at 08:43:05PM +0100, John Delacour wrote:
#!/usr/local/bin/perl
use strict;
my @date = localtime;
my @datearray;
$date[5] += 1900;
for (5,4,3) {
push @datearray, sprintf '%.2d', $date[$_]
}
my $date = join -, @datearray;
while () {
On Fri, Aug 12, 2011 at 09:11:08PM -0700, Warren Michelsen wrote:
I must be misunderstanding how {1}? works.
Normally, quantifiers (? * + {n,m}) match as many times as possible.
Adding a ? after a quantifier makes it match as few times as possible.
(To be more precise, normally the longest
On Sat, Aug 13, 2011 at 05:23:27PM +0100, Patrick James wrote:
I have a strong feeling this question is more about Apache and how my server
works than BBEdit, however this issue only arises in the BBEdit FTP/SFTP
browser window, so maybe it is a BBEdit query.
In every directory shown in
On Tue, Jul 26, 2011 at 05:08:42AM -0700, Walter Ian Kaye wrote:
At 03:26 p -0600 07/24/2011, LuKreme didst inscribe upon an electronic
papyrus:
On Jul 24, 2011, at 15:15, echo goo...@echozone.com wrote:
width + height attributes are not required on image tags. Perhaps
omitted to work
On Mon, Jul 18, 2011 at 05:02:00PM -0700, Semper Fidelis wrote:
If you literally mean (?s)^Note:.*?(?=^RULE), then you could achieve
the effect you want by escaping all the regex characters in BBEdit's
Search for: field, then surround the whole thing with matching
parentheses, as follows ...
On Sun, May 22, 2011 at 12:36:01AM -0700, ChristianBoyce wrote:
It would have been easier to help me if I'd stated the problem more
accurately.
I am going to have some text that is HTML tags and other text that is
not. I simply want to skip over the stuff that is HTML tags. Sounds
easy-- if
On Mon, May 09, 2011 at 10:29:55AM -0400, Robert Huttinger wrote:
s/([-a-z ]+:([^link|visited|hover|active]))\s*(.*)/sprintf(%-32s,$1) .
$3/ie;
FYI, [^link|visited|hover|active] does not do what I presume you think it
does. [] is a character class, which matches exactly one character.
On Tue, May 10, 2011 at 04:22:21PM -0400, Robert Huttinger wrote:
oh!! do I need (link|visited|hover|active) ?
I'm not actually sure what you want that part of the regex to do. :)
Ronald
--
You received this message because you are subscribed to the
BBEdit Talk discussion group on Google
On Tue, May 10, 2011 at 04:55:25PM -0400, Robert Huttinger wrote:
I thought I had gotten it to ignore those words. so anything that looked
like
:link || :active etc ignore those lines.
Okay, you could do something like this:
#! /usr/bin/perl
use strict;
use warnings;
while (){
s/^([-a-z
On Tue, Feb 22, 2011 at 02:16:38PM -0800, frank_lapidus wrote:
I have the problem that in my web project there a many HTML-files (800!)
with image-links without the .png-suffix;-(
Here is one example: img align=absmiddle alt= border=0 hspace=5 *
src=../formulaPNG/70559256_1135261b2da_-7dc6*
On Thu, Jan 27, 2011 at 09:22:43PM -0800, steveax wrote:
$tldn = '(com|net|edu|gov|int|mil|org|biz|name|coop|aero|info|[a-z][a-z])';
#most valid top level domains
That list is a bit out of date these days, no?
What tlds is it missing that you expect to see?
Ronald
--
You received this
On Fri, Jan 28, 2011 at 08:08:10PM +, John Delacour wrote:
At 13:32 -0500 28/01/2011, you wrote:
What tlds is it missing that you expect to see?
Perhaps just one or two token entries to acknowledge the existence of
a whole universe beyond the oily shores of the United States ?
On Wed, Jan 19, 2011 at 10:41:14PM -0600, Christopher Stone wrote:
If I run that from Applescript it throws a couple of errors:
find: ./Utilities/Utilities (Chris)/Unix
Utilities/Manner/.Spotlight-V100/Store-V1: Permission denied
find: ./Utilities/Utilities (Chris)/Unix
On Wed, Jan 19, 2011 at 02:26:09PM -0600, Christopher Stone wrote:
Actually not. Run this from the Terminal, and you'll see why:
find /Applications/ -name *.app
For my purposes I wanted to be able to do this from 'find' in the
Terminal, but its regular expression syntax is not
On Tue, Jan 18, 2011 at 01:29:50PM -0600, Christopher Stone wrote:
Hey Folks,
I've been looking at positive and negative assertions until my head is
spinning. :)
What I want to do is find the entirety of line 1 but *not* line 2:
./Address Book.app
./Address
On Thu, Jan 13, 2011 at 02:43:28PM -0800, Rick wrote:
A foreach requires perl to hold the whole file in memory, while the while
process a line at a time.
That entirely depends on the while loop. In this case, Marek read the
whole file into memory before the while loop, which is iterating over
On Tue, Dec 14, 2010 at 09:06:30AM -0800, Dave Ratcliffe wrote:
I'm trying to replace the following sort of strings in a very large
text file (where “some_text” is one or more of any group of printable
characters, and “$” is eol):
some_text/p
with:
some_text$
/p
Try this:
Find
On Thu, Oct 28, 2010 at 12:49:33AM -0700, Nick Matzke wrote:
Thanks! That worked great! Would there be a way to make
the comment symbols either # or %%?
Try (?:#|%%) in place of [#%]
Ronald
--
You received this message because you are subscribed to the
BBEdit Talk discussion group on
On Thu, Oct 28, 2010 at 06:06:11PM +0200, Maarten Sneep wrote:
On Thu, 28 Oct 2010 11:52:29 -0400, Ronald J Kimball r...@tamias.net
wrote:
On Thu, Oct 28, 2010 at 12:49:33AM -0700, Nick Matzke wrote:
Thanks! That worked great! Would there be a way to make
the comment symbols either
On Wed, Oct 27, 2010 at 08:58:37PM -0700, Govinda wrote:
Hi everyone
Amidst all the excitement for the new v.9.6, I hope there is time for
my grep Q:
I am trying to make a grep search string which finds any HTML comment
that has a double hyphen inside itself.
It should find any HTML
On Fri, Jul 02, 2010 at 10:18:29AM -0700, direwolf wrote:
I would like to find all instance where 2 spaces occur in my file and
replace with 1 space, but not the instances where the code has
spacespaceP1.
Find
spacespace(?!P1)
Replace
space
Ronald
--
You received this message because
On Thu, Jun 03, 2010 at 04:31:03AM -0700, Kendall Conrad wrote:
You'll want to make that less greedy (using *?) so it doesn't take out
too much. You can also simplify by moving the /? outside the
parentheses so it doesn't need to be repeated.
/?(table|tr|td)[^]*?
There is no need to use a
On Thu, Jun 03, 2010 at 09:10:39AM -0700, Nick A wrote:
I tried Alex's suggestion and it picked up all the table,/
table,tr,/tr,td and /td tags without picking up any others,
so it worked well.
Now I'm stuck with a search window that lists all the tags that were
found, but I don't know how
On Tue, May 25, 2010 at 12:57:53PM -0600, LuKreme wrote:
OK, trying to sort a file of movie titles.
This is where I got to:
Sort using pattern:
^(the|A|An|\d+)?\.?\s+?(.*)$
Your regex requires whitespace at the beginning of the actual title, where
you might not have any, and also matches
On Tue, May 25, 2010 at 05:54:58PM -0600, LuKreme wrote:
Doesn't \s+? mean the white space is optional?
\s+ means match one or more whitespace characters, and as many as possible.
\s+? means match one or more whitespace characters, and as few as possible.
Either way there must be at least one
On Sat, May 22, 2010 at 01:28:36PM -0700, Bill Rowe wrote:
On 5/22/10 at 12:15 PM, gabe.r...@gmail.com (Gabriel Roth) wrote:
Is there a grep special character that matches any character
including a line break? I find myself using (\s|\S) and suspect that
there must be a shorter way.
[\s\S]
On Thu, May 20, 2010 at 01:00:57PM -0700, BBEdit user wrote:
I'm very much an amateur with grep.
How do I find the optional minus and put it in the subpattern?
I want to grab the time in the following and then use it for the name.
Multiple names in the document. I seem to have it except
On Tue, May 11, 2010 at 11:04:06AM -0700, Michael Heth wrote:
I have a series of lines with this type of data
Moto Guzzi 1000 Quota Injection1991
Moto Guzzi 1000 Quota Injection1992
Moto Guzzi 1000 S1990
Moto Guzzi 1000 S1991
All I want to do is put a tab before the years which are
On Sun, May 02, 2010 at 06:12:08PM -0700, Jerry Krinock wrote:
My favorite BBEdit feature is the ability to access documents on FTP
servers in the File menu. But syntax checking is broken for perl
scripts if they have 'use' directives other scripts on the server. It
quits with Can't find in
On Thu, Apr 22, 2010 at 01:31:55AM -0700, stephen.richards wrote:
I'm evaluating BBEdit - very impressed so far, but have one hang up.
I've got a Catalyst project, and a common idom in Catalyst is
subroutines like:
sub auto :Private {
my ($self, $c) = @_;
# Only user with
On Mon, Apr 19, 2010 at 02:56:31PM -0700, Gregg wrote:
Hi All,
I'm trying to use BBedit to find a string, then extract the previous
700 lines everytime it finds it and export this into a new file.
This would work in theory to match the 700 lines:
^((?:.*\r){700})a string
but unfortunately
On Mon, Apr 19, 2010 at 09:58:42PM -0400, Ronald J Kimball wrote:
You would have to run this from the command line, specifying the name of
the source file. If you want a script you can run from within BBEdit, I
can work on that when I have a bit more time.
I realized I was overthinking
On Sun, Mar 21, 2010 at 04:40:12PM -0500, Bill Hernandez wrote:
On Mar 21, 2010, at 10:38 AM, Warren Michelsen wrote:
Another grep question: How do I find, using grep, the third column within a
selected table?
I want to delete the third column in its entirety. The opening td and
On Sun, Mar 21, 2010 at 08:21:09AM -0700, Warren Michelsen wrote:
I need to search using grep to find...
A pair of td/td tags across multiple lines
between which is an anchor a /a which can contain any text and which may
also be across multiple lines.
I can find parts of what I want
On Sun, Mar 21, 2010 at 06:40:39PM -0700, Warren Michelsen wrote:
At 7:30 PM -0400 3/21/10, Ronald J Kimball sent email regarding Re:
Oops, I forgot the (?s)...
(?s)(tr[^]*\s*(?:td[^]*(?:(?!/td).)*/td\s*){2})td[^]*(?:(?!/td).)*/td
Ronald
Alas, in a table with over 100 rows, BBEdit runs
On Mon, Nov 23, 2009 at 11:53:51PM -0600, Bill Hernandez wrote:
A couple comments on Bill's answer...
ANSWER :
'pulm' does not exist in 001.html, but it does in 002.html and 003.html
this handles leading spaces ^[ \t]*
so this takes care of that
On Thu, Nov 19, 2009 at 12:55:05PM +0100, Birger Borgwardt wrote:
Hello. I want to copy a text from a file name to the alt= text field
F. example
picture.jpg to alt=picture
src=/images/thumbs/pic1.jpg alt=
src=/images/thumbs/pic1.jpg alt=pic1
Is it possible in BBE?
Here is one way
On Fri, Oct 30, 2009 at 02:39:08PM -0700, Semper Fidelis wrote:
Get the Camel Book from O'Reilly (the publisher). I've forgotten the
actual (real) title of the Camel Book, but if you go to the O'Reilly
web site and search for Perl, you'll come up with several good
choices.
The actual
On Tue, Oct 20, 2009 at 05:52:02AM -0700, RobS wrote:
Since I'm putting the NEW indicators in manually now (via Clippings),
I can insert anything at all that would make this possible. Currently
I'm just using a span to style the word NEW, like so...
span class=newNEW/span
...but that bit of
On Sun, Oct 18, 2009 at 04:37:11PM -0600, le...@gmail wrote:
If a pig looses its voice, is it disgruntled
would be sorted under 'pig'
You've already been provided with a Perl script, so I guess I won't bother
with that. I'll just point out that this should be loses, not looses.
:)
Ronald
On Mon, Oct 05, 2009 at 09:06:28AM -0700, LollyMap wrote:
Hi all, I'm doing a big project, with a lot of html text to transform
in simple text.
I'd like to ask you if you find something wich could help me.
I have this string:
[[Papal Apartments]], some of the [[Roman Catholic
On Tue, Sep 15, 2009 at 06:26:05AM -0700, Tom007 wrote:
I use this Grep Pattern
and need to replace this snippets that are a lot in the webpage:
FIND THIS:
/FONTFONT
color=#ff class=vers
P align=justify n /FONT
AND REPLACE TO THIS:
span class=vers n /span
Which Grep
On Mon, Aug 17, 2009 at 04:24:43AM -0700, xbsjason wrote:
Hey guys, I hate to reply to my own post for fear of spamming but I
was hoping someone had the time to take a look at my initial questions
above, as I'm still at a standstill. 8(
On Aug 7, 12:11?pm, xbsjason xbsja...@gmail.com
On Thu, Aug 13, 2009 at 04:46:50PM +0200, Marek Stepanek wrote:
And here a Perl-Filter to do it in one step. You select the text to
change and you run the following filter over it (you save this snippet
into your folder: ~/Library/Application Support/Unix Support/Unix
Filters/):
On Tue, Aug 11, 2009 at 04:08:56PM -0500, dp wrote:
I would like to add the same header row to all of the files in a
folder. I'm attempting a multi-file search and replace. I need a grep
pattern that will find the entire contents of any file. Then, the
replacement pattern could be my
1 - 100 of 113 matches
Mail list logo