[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

regex code how to filter this sql email combo

Posted on 2016-11-12
3
Medium Priority
?
127 Views
Last Modified: 2016-11-12
insert into `yahoo`.`users`(`id`,`email`,`password`) values (1,'emilywhittaker25@yahoo.com','emily');

Open in new window


output:

emilywhittaker25@yahoo.com','emily
0
Comment
Question by:john lambert
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 35

Accepted Solution

by:
Dan Craciun earned 2000 total points
ID: 41884801
You should simply make the inserts in a temp table and then select the email and password.

If you insist on regex:
insert into `yahoo`\.`users`\(`id`,`email`,`password`\) values \([0-9]+,'([^)]+)'

The result will be in group 1.

HTH,
Dan
1
 

Author Closing Comment

by:john lambert
ID: 41884819
i test it and works perfect thank you...
0
 
LVL 35

Expert Comment

by:Dan Craciun
ID: 41884824
You're welcome!

Glad I could help.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

by Batuhan Cetin Regular expression is a language that we use to edit a string or retrieve sub-strings that meets specific rules from a text. A regular expression can be applied to a set of string variables. There are many RegEx engines for u…
Whatever be the reason, if you are working on web development side,  you will need day-today validation codes like email validation, date validation , IP address validation, phone validation on any of the edit page or say at the time of registration…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

656 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question