Re: extracting a similar but changing pattern

2022-07-27 Thread DiBello Design
that did it! thanks Watts. and of course everyone else who expanded my usage of BBEdit. Been using BBEdit for 20 years as a web designer but have limited grep regex experience. On Wed, Jul 27, 2022 at 5:09 PM Watts Martin wrote: > It looks like you can do that by searching for > >

Re: extracting a similar but changing pattern

2022-07-27 Thread Tom Robinson
Similar to before, you just need 2 capture buffers: ^(.*)c=([0-9.]+)$ Replace with: \2 \1 You could also just copy the IP to the start: ^.*c=([0-9.]+)$ Replace with capture buffer followed by entire match: \1 & Cheers > On 2022-07-28, at 08:28, DiBello Design wrote: > > I didn't

Re: extracting a similar but changing pattern

2022-07-27 Thread Watts Martin
It looks like you can do that by searching for ^(.+?)((\d+\.){3}\d+)$ and replacing it with \2 \1 That basically captures two search items: the first is everything from the start of the line up to the IP address, and the second is the IP address. On Jul 27, 2022 at 16:28:20, DiBello Design

Re: extracting a similar but changing pattern

2022-07-27 Thread DiBello Design
I didn't articulate my question properly. I'm having no trouble (thanks to everyone) extracting the ip addresses. My last question was how to just move the ip address at the end to the beginning of the line like: [Tue Jul 26 19:13:40.922101 2022] [qos:error] [pid 1197:tid 47464083257088]

Re: extracting a similar but changing pattern

2022-07-27 Thread Rod Buchanan
Find: ^.*?(c=(\d+\.){3}\d+).*$ Replace: \1 This will delete everything on the line except "c=IP address". HTH, > On Jul 27, 2022, at 10:22 AM, DiBello Design wrote: > > thanks everyone! Trying to find patterns in a SlowLoris attack on my server. > > Rod you were correct

Re: LSP servers and integration stopped working

2022-07-27 Thread Daniel Graziotin
I am now confident that this is a bug in BBedit, and I tracked down when the bug was introduced. I downloaded all versions since 14 was introduced, and I tried them one by one... The bug was introduced in BBEdit 14.1.1. BBedit 14.1 is the last version that has LSP support working for files

Re: extracting a similar but changing pattern

2022-07-27 Thread DiBello Design
thanks everyone! Trying to find patterns in a SlowLoris attack on my server. Rod you were correct in that I did not know about the quadded item in the menu. And your suggestion worked as well. Thanks. Instead of extracting, how would I move the ip addresses from the end of the line to the

Re: extracting a similar but changing pattern

2022-07-27 Thread Rod Buchanan
ICYDNK there is a built-in search pattern for IP addresses. In the Find dialog click the lowercase "g" dropdown and select "Dotted Quad": (\d+\.){3}\d+ Modify it: (c=(\d+\.){3}\d+) Then click "Extract" as Kjetil suggested. > On Jul 26, 2022, at 7:55 PM, DiBello Design

Re: LSP servers and integration stopped working

2022-07-27 Thread Daniel Graziotin
I have new information. I randomly opened a file that is _not_ in my iCloud Drive. LSP support started working again. I copied one of my projects from the iCloud Drive to my home directory (i.e., outside of the iCloud Drive) and LSP support works perfectly fine. Somehow, BBedit's support

LSP servers and integration stopped working

2022-07-27 Thread Daniel Graziotin
Hello, All LSP servers have stopped working for me. I used to have one for Shell scripts, one for LaTeX, one for Docker and they worked flawlessy. All of sudden, they do not work anymore. I tried reinstalling BBedit as well reinstalling the LSP implementations up to reinstalling homebrew

Re: extracting a similar but changing pattern

2022-07-27 Thread Kjetil RĂ¥ Hauge
How about a grep search for: c=[0-9]{2}\.[0-9]{3}\.[0-9]{3}\.[0-9]{3} ... and use the command "Extract" in the Find menu? From: bbedit@googlegroups.com on behalf of DiBello Design Sent: 27 July 2022 02:55 To: BBEdit Talk Subject: extracting a similar but