Click here to Skip to main content
15,799,018 members
Home / Discussions / Regular Expressions
   

Regular Expressions

 
GeneralRe: Exclude Uppercase for conjoined names Pin
Richard Deeming3-Oct-23 22:36
mveRichard Deeming3-Oct-23 22:36 
GeneralRe: Exclude Uppercase for conjoined names Pin
trønderen4-Oct-23 9:40
trønderen4-Oct-23 9:40 
GeneralRe: Exclude Uppercase for conjoined names Pin
jschell4-Oct-23 5:58
jschell4-Oct-23 5:58 
AnswerRe: Exclude Uppercase for conjoined names Pin
trønderen4-Oct-23 10:02
trønderen4-Oct-23 10:02 
GeneralRe: Exclude Uppercase for conjoined names Pin
OriginalGriff12-Oct-23 2:02
mvaOriginalGriff12-Oct-23 2:02 
Questionlearning regex isn't easy :-) Pin
Kardock18-Sep-23 5:22
Kardock18-Sep-23 5:22 
AnswerRe: learning regex isn't easy :-) Pin
Richard Deeming18-Sep-23 6:02
mveRichard Deeming18-Sep-23 6:02 
AnswerRe: learning regex isn't easy :-) Pin
k505418-Sep-23 6:33
mvek505418-Sep-23 6:33 
If you know that you do not have any embedded semi-colons in your input text, then maybe a simple split would work for you instead of a regex. e.g fields[] = split(line, ';') (or however your base language does that). This is far simpler, and should be much quicker that applying a regex and extracting a match. However, as Richard points out, if you do have embedded semi-colons you'll need to know how they're escaped in the string. In which case it is probably still faster to write a parser that will extract the fields to an array or as struct or class of some sort.

In a related note, you might be tempted to apply a regex to validate the email address, but that is not as simple and straight forward as it might seem. See this discussion from stack-overflow : https://stackoverflow.com/a/201378 The next response on that SO page may also be useful, if you're using C#, which refers to the MailAddress class.
Keep Calm and Carry On

AnswerRe: learning regex isn't easy :-) Pin
jschell18-Sep-23 6:42
jschell18-Sep-23 6:42 
GeneralRe: learning regex isn't easy :-) Pin
Kardock18-Sep-23 7:07
Kardock18-Sep-23 7:07 
AnswerRe: learning regex isn't easy :-) Pin
trønderen18-Sep-23 7:04
trønderen18-Sep-23 7:04 
AnswerRe: learning regex isn't easy :-) Pin
jschell19-Sep-23 6:29
jschell19-Sep-23 6:29 
QuestionMySQL Select query that chooses something dot something between certain underscores Pin
Member 1450438414-Sep-23 7:12
Member 1450438414-Sep-23 7:12 
AnswerRe: MySQL Select query that chooses something dot something between certain underscores Pin
RedDk14-Sep-23 7:36
RedDk14-Sep-23 7:36 
GeneralRe: MySQL Select query that chooses something dot something between certain underscores Pin
Member 1450438418-Sep-23 5:28
Member 1450438418-Sep-23 5:28 
GeneralRe: MySQL Select query that chooses something dot something between certain underscores Pin
RedDk18-Sep-23 8:23
RedDk18-Sep-23 8:23 
GeneralRe: MySQL Select query that chooses something dot something between certain underscores Pin
Member 1450438419-Sep-23 0:16
Member 1450438419-Sep-23 0:16 
GeneralRe: MySQL Select query that chooses something dot something between certain underscores Pin
Richard MacCutchan19-Sep-23 2:45
mveRichard MacCutchan19-Sep-23 2:45 
GeneralRe: MySQL Select query that chooses something dot something between certain underscores Pin
Member 1450438419-Sep-23 5:46
Member 1450438419-Sep-23 5:46 
GeneralRe: MySQL Select query that chooses something dot something between certain underscores Pin
Richard MacCutchan19-Sep-23 6:30
mveRichard MacCutchan19-Sep-23 6:30 
GeneralRe: MySQL Select query that chooses something dot something between certain underscores Pin
Member 1450438420-Sep-23 3:17
Member 1450438420-Sep-23 3:17 
GeneralRe: MySQL Select query that chooses something dot something between certain underscores Pin
Richard MacCutchan20-Sep-23 3:31
mveRichard MacCutchan20-Sep-23 3:31 
GeneralRe: MySQL Select query that chooses something dot something between certain underscores Pin
RedDk21-Sep-23 8:17
RedDk21-Sep-23 8:17 
GeneralRe: MySQL Select query that chooses something dot something between certain underscores Pin
Richard MacCutchan22-Sep-23 0:07
mveRichard MacCutchan22-Sep-23 0:07 
GeneralRe: MySQL Select query that chooses something dot something between certain underscores Pin
RedDk22-Sep-23 10:44
RedDk22-Sep-23 10:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.