Messages - Ath [ switch to compact view ]

Pages: prev1 ... 13 14 15 16 17 [18] 19 20 21 22 23 ... 702next
86
It would help if you could describe what specific features of Direct Access appeal the most to you, and what other alternatives you have tried.

As you say, there are many programs that try to solve the display of a menu of applications, so there are probably some features that you dislike, or you would have picked one of the existing offerings already.
F.e., have you tried LaunchBar Commander, as provided in the Software section of this site?

87
General Software Discussion / Re: Custom Screenshot/OCR software
« on: June 20, 2020, 08:56 AM »
That kind of software already exists, as is to be expected: http://capture2text.sourceforge.net/

And there is of course Screenshot Captor that allows you to automate the process, but you'll need to add some OCR software (free or paid, it should support command-line conversion, but most do) to your system, and configure it in SC to run after taking a screenshot.

Output format(s) is heavily dependent on what the OCR software supports.


89
That first regex that I put in works on that phrase just fine.
I fully agree, but as the OP has trouble reading (or understanding?) replies to his questions, I sort of tried to blow him off his socks, as all previous replies probably were too 'easy' :huh:

I didn't include the space in the regex
Well, there has to be some separator between any content and the e-mail address, and that's most likely a space.

90
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? ;)

Pages: prev1 ... 13 14 15 16 17 [18] 19 20 21 22 23 ... 702next
Go to full version