I would like to extract specific pattern from string in MySQL.
The column contains specific string like xxx-atg168d and xxx-atg444-6x. From these string, I want to extract atg168 and atg444 only. How can I perform this in MySQL?
Input column
xxx-atg168d
xxx-atg444-6x
xxx-atg1689d
xxx-atg16507d
Output column
atg168
atg444
atg1689
atg16507
http://dev.mysql.com/doc/refman/5.7/en/string-functions.html
It's really unclear how this is related to bioinformatics.
Yes this related to bioinformatics. This table mimics the miRNA data.
This is plain text processing and SQL. Not really related to Bioinformatics and like Devon says, can be found with the tiniest bit of googling.