Messages - Ath [ switch to compact view ]

Pages: prev1 ... 35 36 37 38 39 [40] 41 42 43 44 45 ... 723next
196
OK so what is the regex to capture the piece of text that starts with space and ends with the end of the line and can contain any character?

That would look like this:
.*\s+(\S+)$
What this does is:
.* : Any character
\s+ : white-space, 1 or more consecutive
(  : start group
\S+  : not white-space, 1 or more consecutive
)  : end group
$  : end of line marker

You will have to get the group 1 value for your result, input like this:
a piece of text at the end of the line
will give you the word 'line' as a result

If you are still searching for your original request, I took the first regex from https://emailregex.com, dropped it in the https://regex101.com regex tester, fixed the issues it reported (escape a few slashes because of the PCRE regex engine), and wrapped it with the construction I just showed here, and came up with this:
.*\s+((?:[a-z0-9!#$%&'*+\/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+\/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\]))$
If you feed that this text:
test for email address with plain text prefix test@email.com
The only group that's there produces '[email protected]' as a result.

Did I complete your assignment with this? ;)

197
RAM usage is pretty bad, yes, but CPU not so much. Right now the CPU is at 10%, and even when it's a bit higher I can live with that.
I've got other stuff running besides my browsers, and I want max available of my CPU and memory to go there, the browser is only a view on my working environment, not 'the only thing in the world' ;D

198
First thing I'd do is switch to Firefox, when having that many tabs open in a browser, Chrome isn't really good at that, consuming lots of memory and CPU when the tab-count goes up. I'm running one of my Firefox instances with 300 tabs, without trouble, but I do turn off that computer at the end of my workday.

I try to never touch the pagefile size, at least not since the Windows 2000 days, back in the Windows NT 4.0 days it seemed to make sense to tune it, but after that it usually got worst whatever way I tuned it away from the Windows optimal/automatic settings. Theoretically, Windows running on a 16 GB system should be able to do without any pagefile, but I've found that Windows can get really instable that way, so that's IMHO a good reason not to touch it.

199
General Software Discussion / Re: Chrome tab height bug?
« on: June 07, 2020, 06:41 AM »
The issue still sometimes shows up here. I'm really surprised that this thread didn't get a single reply. Am I the only one seeing this? :)
Well, I initially read your post but didn't recognize the issue, Chrome is only my third browser (Firefox GA and Firefox DEV are my 2 main browsers... browser-based application development and testing on the same domain but different accounts => 2 browsers is the easiest solution).
And on top of that, even if it happened, I probably wouldn't have noticed... :-[

200
Why are you trying to use something you don't know how to construct (you are not even checking for the mandatory @ and .  >:(), if there are several working examples and links in posts above yours? Please use the advice that's given, for free, by ppl that actually know what they are talking about.

Pages: prev1 ... 35 36 37 38 39 [40] 41 42 43 44 45 ... 723next
Go to full version