It's NOT doing the same thing is (?m). Apply your pattern to this sample:
Yum yum I munch this text.
I get:
YuyuImunchthistext.
On February 12, 2019 5:38:05 PM "@lbutlr" wrote:
On 12 Feb 2019, at 15:29, Sam Hathaway wrote:
How exactly are you applying this pattern? Is this in BBEdit’s find
Seems like an odd search string. The (m?) would be to capture a patten for
an optional m before your space. If you're just wanting to get the spaces I
don't know why you would include this when the \s would get them all with a
replacement of null and selecting the replace all option. Including t
On 02/12/2019, at 06:38, @lbutlr mailto:krem...@kreme.com>>
wrote:
> I asked someone how to remove all spaces in an string more efficiently and he
> responded with
>
> search: (m?)\s+
> replace: (nul)
>
> which sure does work.
>
> But WHY?
On 02/12/2019, at 16:26, @lbutlr mailto:krem...@krem
On 13 Feb 2019, at 00:43, Christopher Stone wrote:
> That has to be a typo on your friend's part. There's no sense in adding a
> capture for an optional literal 'm' – it adds nothing and can mangle words
> ending in 'm'.
Yep, none of the input I was testing had words ending in m, evidently. Th
Search:
(.+)
Replace:
\1
On Tue, 4 Oct 2022 at 13:28, Michael Heth wrote:
> Say Folks,
>
> Have been trying to get my head around GREP for many years and never quite
> get it.
>
> I've asked for help before and folks were able to give me the cryptic code
> to get my little task in the done colum
Search Pattern: ^.*$
Replace Pattern: \0
Will do the job!
> Am 04.10.2022 um 06:18 schrieb Michael Heth :
>
> Say Folks,
>
> Have been trying to get my head around GREP for many years and never quite
> get it.
>
> I've asked for help before and folks were able to give me the cryptic code
> On Oct 4, 2022, at 5:37 AM, Kaveh wrote:
>
> Search:
> (.+)
> Replace:
> \1
Thanks much, worked like a champ.
I’ll have to try and wade through the docs on GREP again and see if it catches
this time.
Or, Or,
The folks at BB could do a 5 minute YT video showing various examples of commo
Hi Michael
Glad it worked. It's actually very easy once you get the knack. I have been
meaning to do some video tutorials so thanks for the prompt. Feel free to
remind me again. No problem if you want to email privately.
Regards
Kaveh
On Tue, 4 Oct 2022 at 13:51, Michael Heth wrote:
>
>
> > On
Rob,
I think I would need to find/replace runs.
Grep: on
Find: (.+)\r
Replace: \1\r
Grep: off
Find:
Replace:
Ted
On Jun 8, 2009, at 10:00 AM, RobS wrote:
>
> Hi,
>
> As usual, grep beyond the most basic defeats me. I must suffer from
> dysgrepia.
>
> I use the following little thing to
On Mon, Jun 08, 2009 at 07:00:00AM -0700, RobS wrote:
> I use the following little thing to add BR tags to the end of lines
> I've selected...
> Find: \r
> Replace: \r
> ...with "Selected text only" checked.
> How can the Find/Replace pattern be improved so it skips over blank
> lines and any
Ronald,
Shouldn't the Replace be
\1)\r
or am I missing something?
Ted
On Jun 8, 2009, at 10:32 AM, Ronald J Kimball wrote:
>
> On Mon, Jun 08, 2009 at 07:00:00AM -0700, RobS wrote:
>
>> I use the following little thing to add BR tags to the end of lines
>> I've selected...
>> Find: \r
>> Rep
Thanks Ted for the good try. ;-)
And thanks Ronald. That's exactly what I was looking for -- select the
poem, click, done. (The very concept of negative look-behind gives me
a headache.)
Rob
--~--~-~--~~~---~--~~
You received this message because you are subscribe
Why capture anything? You just want to place the insertion point at the end
of any line that doesn't end in or isn't a blank line. Then you just
insert the at that point.
Dennis
On 6/8/09 9:44 AM, "Ted Burger" wrote:
>
> Ronald,
>
> Shouldn't the Replace be
> \1)\r
> or am I missing somet
On Mon, Jun 08, 2009 at 10:44:12AM -0400, Ted Burger wrote:
>
> Ronald,
>
> Shouldn't the Replace be
> \1)\r
> or am I missing something?
>
A negative look-behind is a kind of zero-width assertion - it doesn't
actually consume any of the string.
Ronald
--~--~-~--~~~--
I am trying to reformat tide tables from NOAA. The data comes in this
format:
1 4:09 AM 17.6H
1 10:30 AM2.3 L
1 4:34 PM 16.8H
1 10:52 PM2.3 L
2 5:02 AM 17.3H
2 11:24 AM2.5 L
2 5:30 PM 16.3H
2 11:45
Hi,
if I’m not mistaken you could use either
from [A-Z]+
Or
from [[:upper:]]+
Not on a computer right now, so this is untested, but hopefully is correct and
helps ;)
As for books, maybe one of the O’Reilly pocket references, but I’m not sure
about the plainer english…
Best,
Holger
> O
A slight modification to Holger's answer above --
from [A-Z]
works. Be sure to tick the "Case sensitive" box at the top of the dialog.
[image: Screen Shot 2018-05-15 at 8.52.20 AM.png]
--Kerri
On Tue, May 15, 2018 at 8:33 AM 'Holger Bartel' via BBEdit Talk <
bbedit@googlegroups.com> wrote:
Please try this:
from [A-Z][a-zA-Z]+
with both the "Case sensitive" and "Grep" options enabled.
In summary, "from " will match these literal characters, while
the first _character class_ [A-Z] will match a single capital
letter, and the second _character class_ [a-zA-Z] modified by +
will ma
Thank you all for helping with such a simple request.
However, I realize now that I didn't even word my request accurately.
I understand that for BBEdit, a "line" is everything up until the next
"line break"
What I need is to search for SENTENCES, not LINES.
I managed to figure out that the foll
te in an email entitled
"Re: Another Newbie GREP help request...":
I managed to figure out that the following would give me everything
that had "from" followed by a capital letter, with a period followed
by a space at the end:
from [A-Z][a-zA-Z].*[\. ]
But that also gives me
I think I see my problem.
I was using "Process Lines Containing" which appears to extract the entire
line, not matter what I search for.
I used Search with the Extract function, and it works now!
Thank you
On Friday, May 18, 2018 at 1:47:33 AM UTC-7, Rick Gordon wrote:
>
> Change the .* in
On 05/14/2018, at 22:15, Matthew London mailto:mlon...@gmail.com>> wrote:
> PS.Grateful if someone can recommend a "GREP for non-programmers" written in
> plain(er) English so I don't have to bother you very helpful people here.
Hey Matthew,
It takes a while to get good enough with regular expr
Hey all,
I'm looking to use grep to remove text contained within a tag (including
the tag itself). More specifically - I need to find and remove a bunch of
iframe tags from multiple .txt files.
Here's an example tag:
*https://website.com/1.0/ifr?zid=123456&cb=${CACHEBUSTER}&abc_imp=${AUC_ID}
I have some data that looks like this:
# visitors
# 2009-02-04
Item,Value,Value Percent,URL,Mumble URL
"",498,,"",""
# 2009-02-03
Item,Value,Value Percent,URL,Mumble URL
"",351,,"",""
#visitors is the first line of the document
the other bits continue in sequence
I want it to look like this:
On 10/11/2011, at 09:23 , John Gold wrote:
> 1 4:09 AM 17.6H
> 1 10:30 AM2.3 L
> 1 4:34 PM 16.8H
> 1 10:52 PM2.3 L
> 2 5:02 AM 17.3H
> 2 11:24 AM2.5 L
> 2 5:30 PM 16.3H
> 2 11:45 PM2.7 L
> 3 5:56 AM
Hey -- thank you very much. I'll give that a try!
John
On Nov 10, 1:33 am, Alex Satrapa wrote:
> On 10/11/2011, at 09:23 , John Gold wrote:
>
> > 1 4:09 AM 17.6 H
> > 1 10:30 AM 2.3 L
> > 1 4:34 PM 16.8 H
> > 1 10:52 PM 2.3 L
> > 2 5:02 AM 17.3 H
> > 2 11:24
On Nov 9, 2011, at 4:23 PM, John Gold wrote:
> I am trying to reformat tide tables from NOAA. The data comes in this
> format:
>
> 1 4:09 AM 17.6H
> 1 10:30 AM2.3 L
> 1 4:34 PM 16.8H
> 1 10:52 PM2.3 L
> 2 5:02 AM 17.3H
> 2 11:24 AM
I'll give this one a try as well. Thanks!
On Nov 10, 10:04 am, Rod Buchanan wrote:
> On Nov 9, 2011, at 4:23 PM, John Gold wrote:
>
>
>
>
>
>
>
>
>
> > I am trying to reformat tide tables from NOAA. The data comes in this
> > format:
>
> > 1 4:09 AM 17.6 H
> > 1 10:30 AM 2.3 L
> >
Question -- Now that you've laid it out, I understand what the
expression does, except for the \1 at the end of the search pattern.
What does that do?
Thanks again!
John
On Nov 10, 9:22 am, John Gold wrote:
> Hey -- thank you very much. I'll give that a try!
>
> John
>
> On Nov 10, 1:33 am, Al
On 11/11/2011, at 04:10 , John Gold wrote:
> Question -- Now that you've laid it out, I understand what the
> expression does, except for the \1 at the end of the search pattern.
> What does that do?
You're asking about deepest darkest tech magic. I could tell you, but then I'd
have to shoot you
Only a lunatic would attack tide-tables with a regex. :-)
--j
On Nov 10, 2011 1:24 PM, "Alex Satrapa" wrote:
> On 11/11/2011, at 04:10 , John Gold wrote:
>
> > Question -- Now that you've laid it out, I understand what the
> > expression does, except for the \1 at the end of the search pattern.
At 13:14 -0800 11/15/11, Johanヾtrandberg wrote:
>Only a lunatic would attack tide-tables with a regex. :-)
I dabble in geology of the only natural moon of planet Earth. In that mode I
am called an astrogeophysicist. and I tell folks that's to avoid calling me a
lunatic. I wonder how many on th
>
> I wonder how many on this list properly connected tides with Luna? Well
> done.
>
> Well, now, the Sun has some effect too.
--j
--
You received this message because you are subscribed to the
"BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to bbedit@goog
I am very new to Grep and was wondering if some one could help with this.
I want to replace the whole line of code that starts with:
and ends with
In the middle the content will not be the same in every document. That is
why I want to be able to find a line that starts and ends like that an
Can you put the output you expect for this string?
On Mon, 10 Oct 2022 at 22:25, a k wrote:
> Hey all,
>
> I'm looking to use grep to remove text contained within a tag (including
> the tag itself). More specifically - I need to find and remove a bunch of
> iframe tags from multiple .txt files.
The find pattern would be "" with "Grep" checked. You can
use the Multi-File Search... dialog to run this against a folder containing
your .txt files to see how many matches there are.
When I'm doing multi-file work like this I'll usually start out doing a Find
All in the multi-file dialog and
Sorry for being unclear - I want to remove the text so output would be blank
On Monday, October 10, 2022 at 4:45:42 PM UTC-5 Kaveh wrote:
> Can you put the output you expect for this string?
>
> On Mon, 10 Oct 2022 at 22:25, a k wrote:
>
>> Hey all,
>>
>> I'm looking to use grep to remove text
Thanks so much! This did the trick. I've been familiarizing myself with
multi-file search and am very excited to now have such a powerful tool to
use for these repetitive tasks. Hoping to learn more about grep as well as
Text Factory
On Monday, October 10, 2022 at 4:46:33 PM UTC-5 fletc...@cumu
On 5 Feb 2009, at 20:48, Lorin Rivers wrote:
>
> I have some data that looks like this:
>
> # visitors
> # 2009-02-04
> Item,Value,Value Percent,URL,Mumble URL
> "",498,,"",""
>
> # 2009-02-03
> Item,Value,Value Percent,URL,Mumble URL
> "",351,,"",""
>
>
> #visitors is the first line of the docum
Hello,
I need to turn all instances of ...
*“mailto:someone@site**.ca**?subject=Hello John”
... into ...
**“mailto:**someone**@**site**.ca**?subject=Hello%20John”*
Basically, find any mailto link with a subject, and then find any space in
that subject and replace it with %20. I need to do thi
That’s an easy one :]
Search for this:
^.+$
^ says look for '’ at beginning of line
. look for any character
+ …one or more times
$ says look for '’ at end of line
Cheers
> On 2017-03-29, at 08:55, Nikao wrote:
>
> I am very new to Grep and was wondering if some one could help with this
Thank you!
On Tuesday, March 28, 2017 at 3:49:58 PM UTC-5, Tom Robinson wrote:
>
> That’s an easy one :]
>
> Search for this:
>
> ^.+$
>
> ^ says look for '’ at beginning of line
> . look for any character
> + …one or more times
> $ says look for '’ at end of line
>
> Cheers
>
>
> > On
I'm using BB Edit grep to select links like this:
(\)
So I can paste the match using: \1
However, I basically want to delete everything else in the document
except these links, so that all I am left with is the links. Possible
to modify my code to accomplish this? Thanks!
--~--~-~--~-
Finding all "mailto:"; URIs is pretty easy:
(?<=href=")mailto:.+?(?="?>)
You could then pass the results to something like Ruby's URL encode. But
I'll let someone else more qualified help you with that.
--
You received this message because you are subscribed to the
"BBEdit Talk" discussion gr
Ignore me. I recalled that that site had only ever used two different
subjects in the mailto links. So I used plain old multi-file search and
replace on them. Job done.
When brains fail, use brute force.
Rob
--
You received this message because you are subscribed to the
"BBEdit Talk" discuss
At 09:30 -0700 10/28/09, BB Design wrote:
>I'm using BB Edit grep to select links like this:
>
>(\)
>
>So I can paste the match using: \1
>
>However, I basically want to delete everything else in the document
>except these links, so that all I am left with is the links. Possible
>to modify my cod
On Thu, Oct 29, 2009 at 05:30, BB Design wrote:
> I'm using BB Edit grep to select links like this:
>
> (\)
>
> So I can paste the match using: \1
>
> However, I basically want to delete everything else in the document
> except these links, so that all I am left with is the links. Possible
> to
Thanks so much!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
"BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+uns
On Oct 28, 2009, at 10:33, BB Design wrote:
> However, I basically want to delete everything else in the document
> except these links, so that all I am left with is the links.
Text menu, process lines containing.
--~--~-~--~~~---~--~~
You received this message
Hello, every day when I have to close up my shop I get this report from the
cash register. I have the obligation to transmit some sales data through a
web page, and I have to insert one receipt at a time, sigh.
Only sales that have the "C.F." are valid.
In this case I need it in the order:
the da
You state what you need is in red, but you do not show any date in red. Please
clarify...
thank you...
Wags ;)
WagsWorld
Hebrews 4:15
Ph(primary) : 408-914-1341
Ph(secondary): 408-761-7391
On Dec 4, 2018, 05:14 -0800, m.osti , wrote:
> Hello, every day when I have to close up my shop I get this
On 12/04/2018, at 04:19, m.osti mailto:mk0...@gmail.com>>
wrote:
> Hello, every day when I have to close up my shop I get this report from the
> cash register. I have the obligation to transmit some sales data through a
> web page, and I have to insert one receipt at a time, sigh.
> Only sales t
Il giorno martedì 4 dicembre 2018 21:41:43 UTC+1, David Wagner ha scritto:
>
> You state what you need is in red, but you do not show any date in red.
> Please clarify...
>
Sorry Wags, it's cause I'm on google groups via web browser, and it allows
HTML view.
Below the picture.
ty
-m
[image: S
Il giorno martedì 4 dicembre 2018 23:12:49 UTC+1, Christopher Stone ha
scritto:
>
> On 12/04/2018, at 04:19, m.osti > wrote:
>
> Hello, every day when I have to close up my shop I get this report from
> the cash register. I have the obligation to transmit some sales data
> through a web page,
On Tue Dec 04 2018 03:19:02 m.osti said:
>
> Now I copy them by hand and then I use a macro that I created in
> KeyboardMaestro. Since there is a lot of data that I don't need, to speed up
> I tried to extract only the necessary values through a GREP search, but I
> failed, failed, failed
I see you've got a script, but I like a puzzle... seems to work like this.
t_fiscale (\d{4})(\d{2})(\d{2}) (\d+) (\d+)$(?s).+?TOTALE EURO
+([0-9,]+).+?C\.F\. +([\w,]+)
I used this with the extract option
On Tuesday, December 4, 2018 at 8:14:34 AM UTC-5, m.osti wrote:
>
> Hello, every day when
oops...you might need the replace info
\5\n\1/\2/\3\n\6\n\7
On Wednesday, December 5, 2018 at 12:20:28 PM UTC-5, ThePorgie wrote:
>
> I see you've got a script, but I like a puzzle... seems to work like this.
>
> t_fiscale (\d{4})(\d{2})(\d{2}) (\d+) (\d+)$(?s).+?TOTALE EURO
> +([0-9,]+).+?C\.F
thank you for your concern. this GREP search is quite good: it get also the
sale(s) without CF that are unnecessary but I can just ignore them at a
fast glance.
Il giorno mercoledì 5 dicembre 2018 18:20:28 UTC+1, ThePorgie ha scritto:
>
> I see you've got a script, but I like a puzzle... seems t
with this option there is an error: it get sales #4 (sale without CF =
unnecessary) but it ignore sale #5 (with CF = necessary)
of course, this way the result is even cleaner and easier then to use
Il giorno mercoledì 5 dicembre 2018 18:25:36 UTC+1, ThePorgie ha scritto:
>
>
> oops...you might ne
Right you are. I didn't notice that when I last tested. Try this:
t_fiscale (\d{4})(\d{2})(\d{2}) (\d+) (\d+)$(?:.*\n){1,8}?TOTALE EURO
+([0-9,]+)(?:.*\n){1,3}?C\.F\. +([\w]+)
and replace:
\5\n\3/\2/\1\n\6\n\7\n\n
Note: I'm not sure how many items you can have listed on your receipt which
cause
On 12/06/2018, at 11:30, m.osti mailto:mk0...@gmail.com>>
wrote:
> of course, this way the result is even cleaner and easier then to use
Hey Marco,
Here's an updated script that produces cleaner output.
>From here I would probably turn the output into tab-delimited single lines.
Because from
Well ThePorgie, not sure to have understood your note but... now it's
perfect.
thank you
Il giorno giovedì 6 dicembre 2018 19:33:55 UTC+1, ThePorgie ha scritto:
>
> Right you are. I didn't notice that when I last tested. Try this:
> t_fiscale (\d{4})(\d{2})(\d{2}) (\d+) (\d+)$(?:.*\n){1,8}?TOTALE
On 12/06/2018, at 13:44, Christopher Stone mailto:listmeis...@suddenlink.net>> wrote:
> Here's an updated script that produces cleaner output.
> From here I would probably turn the output into tab-delimited single lines.
Hey Marco,
The newest incarnation of the script (appended) produces output
Ok, I think I've narrowed down the greedy over-run to only look between
matching register numbers...So basically this should work regardless of
varying number of item lines in your receipt.
Search:
t_fiscale (\d{4})(\d{2})(\d{2}) (\d+) (\d+)$(?s).*?TOTALE EURO
+([0-9,]+).*?C\.F\. +([\w]+).*?N\.
Hi, I tried this also and seems to me the result is the same as the
previous one: perfect.
I use the multi search function of bbedit: it scans all the folders
containing the files (one per day) and in 4 seconds extracts all the data.
awesome!
Ah, there was only a receipt with an amount of 1000,
Hi Chris, thank you for the support ;)
> I can write another script that will parse these into variables that can
be inserted into your web page.
This is over my skill Chris :( but for your information, I have to put
other data in 3 consecutive web pages. I set up 2 macros with Keyboad
Maestr
Using the *input data* below and using Grep, I need either the first digit
or letter extracted from each row (just one per row), so the *output* looks
like what is shown below. Though the output is displayed here in horizontal
format, I need the actual output in vertical format without any comm
^[^a-z0-9]*(.).*$
^ at beginning of line
[^a-z0-9] look for anything which isn’t a-z 0-9
* 0 or more times
(.) any single character (i.e. a-z 0-9), and ‘capture’ it for replacement
pattern
★ any characters
$ end of line
Replace with
\1
Cheers
> On 2022-01-17, at 12:16, Howard wrote:
>
> Us
Thanks Tom and Christopher.
Howard
On Sunday, 16 January 2022 at 8:38:24 pm UTC-5 Christopher Waterman wrote:
> Hello Howard,
>
> Find: ^[^0-9A-Z]?([0-9A-Z]).*
>
> Replace: \1
>
>
>
> — Chris(topher)?
>
>
--
This is the BBEdit Talk public discussion group. If you have a feature request
or need
101 - 169 of 169 matches
Mail list logo