parse results in MySQL via REGEX
Posted
by Derek Adair
on Stack Overflow
See other posts from Stack Overflow
or by Derek Adair
Published on 2010-03-09T22:01:48Z
Indexed on
2010/03/17
20:11 UTC
Read the original article
Hit count: 391
Hi,
I'm a bit confused on the functionality of the REGEX support for MySQL and I have yet to find a solid example on how to separate a result with REGEX within an sql statement
.
Example:
How could I pull data from a table emails that looks something like...
+-------------------------+
|Emails |
|-------------------------|
|[email protected]|
+-------------------------+
and return something through an sql statement that looks like...
+------------------------------+
|Username | Domain | TLD |
|-----------|------------|-----|
|some.email | yourdomain | com |
+------------------------------+
© Stack Overflow or respective owner