Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

was get email address

20 views
Skip to first unread message

Bruce Horrocks

unread,
Oct 30, 2017, 7:45:32 PM10/30/17
to
Good answers to the query to extract an email address. Maybe it's time
to badger the Posix people to add [:email:] and [:url:] to the list of
known ranges?

And possibly the sub-parts, e.g. [:email_person:]@[:email_server:] (but
they only match on the appropriate part of whatever string [:email:]
would match (otherwise 'email_person' is pretty much [:alpha:] but
without knowing how many characters to match)).

Thoughts?
--
Bruce Horrocks
Surrey
England
(bruce at scorecrow dot com)

Janis Papanagnou

unread,
Oct 30, 2017, 8:35:07 PM10/30/17
to
On 31.10.2017 00:45, Bruce Horrocks wrote:
> Good answers to the query to extract an email address. Maybe it's time to
> badger the Posix people to add [:email:] and [:url:] to the list of known ranges?
>
> And possibly the sub-parts, e.g. [:email_person:]@[:email_server:] (but they
> only match on the appropriate part of whatever string [:email:] would match
> (otherwise 'email_person' is pretty much [:alpha:] but without knowing how
> many characters to match)).
>
> Thoughts?

This would open a can of worms. Currently there are simple lexical character
types defined, with your proposal there's semantical information introduced;
and there are countless semantical items out there!

Given that most (all?) such or similar technical items like email addresses
can be represented by regexps it would probably be more sensible to define a
library of regexps for such purposes.

Janis

0 new messages