Click here to Skip to main content
15,886,199 members
Home / Discussions / Regular Expressions
   

Regular Expressions

 
GeneralRe: Regex to match exact word and dash symbol Pin
Member 1533502224-Aug-21 22:57
Member 1533502224-Aug-21 22:57 
GeneralRe: Regex to match exact word and dash symbol Pin
User 1521787324-Aug-21 23:32
User 1521787324-Aug-21 23:32 
GeneralRe: Regex to match exact word and dash symbol Pin
Member 1533502224-Aug-21 23:37
Member 1533502224-Aug-21 23:37 
GeneralRe: Regex to match exact word and dash symbol Pin
User 1521787325-Aug-21 0:08
User 1521787325-Aug-21 0:08 
GeneralRe: Regex to match exact word and dash symbol Pin
Member 1533502225-Aug-21 0:24
Member 1533502225-Aug-21 0:24 
GeneralRe: Regex to match exact word and dash symbol Pin
User 1521787325-Aug-21 1:11
User 1521787325-Aug-21 1:11 
QuestionProblem capturing last group in a line: CLOSED Pin
mo149222-Aug-21 13:18
mo149222-Aug-21 13:18 
AnswerRe: Problem capturing last group in a line: CLOSED Pin
Richard Deeming22-Aug-21 21:46
mveRichard Deeming22-Aug-21 21:46 
.*? tells the expression to capture as little as possible. Since there's nothing to match after the last expression, the least it can capture is nothing, so that's precisely what it does.

If you're looking to capture everything up to the end of the line, then you'll want to add an end-of-line anchor:
RegEx
...,DataType=(?<DataType>.*?)$




"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer

GeneralRe: Problem capturing last group in a line: CLOSED Pin
mo149223-Aug-21 6:17
mo149223-Aug-21 6:17 
QuestionEmployer Identification Number (EIN) Regex Pin
Member 153111493-Aug-21 9:49
Member 153111493-Aug-21 9:49 
AnswerRe: Employer Identification Number (EIN) Regex Pin
User 1521787322-Aug-21 2:40
User 1521787322-Aug-21 2:40 
QuestionRegex select from list Pin
Jukec30-Jun-21 12:33
Jukec30-Jun-21 12:33 
AnswerRe: Regex select from list Pin
jschell8-Aug-21 8:27
jschell8-Aug-21 8:27 
QuestionNeed some help with regular expression Pin
Member 1524909515-Jun-21 18:22
Member 1524909515-Jun-21 18:22 
AnswerRe: Need some help with regular expression Pin
Member 1524502415-Jun-21 20:05
Member 1524502415-Jun-21 20:05 
GeneralRe: Need some help with regular expression Pin
Member 1524909515-Jun-21 20:24
Member 1524909515-Jun-21 20:24 
GeneralRe: Need some help with regular expression Pin
Member 1524502415-Jun-21 22:43
Member 1524502415-Jun-21 22:43 
AnswerRe: Need some help with regular expression Pin
Richard MacCutchan15-Jun-21 22:25
mveRichard MacCutchan15-Jun-21 22:25 
GeneralRe: Need some help with regular expression Pin
Member 1524502415-Jun-21 22:48
Member 1524502415-Jun-21 22:48 
GeneralRe: Need some help with regular expression Pin
Richard MacCutchan15-Jun-21 23:00
mveRichard MacCutchan15-Jun-21 23:00 
GeneralRe: Need some help with regular expression Pin
Member 1524502416-Jun-21 8:53
Member 1524502416-Jun-21 8:53 
GeneralRe: Need some help with regular expression Pin
Richard MacCutchan16-Jun-21 10:10
mveRichard MacCutchan16-Jun-21 10:10 
AnswerRe: Need some help with regular expression Pin
User 1521787319-Jun-21 13:07
User 1521787319-Jun-21 13:07 
QuestionInterrupted list Pin
Member 1524502413-Jun-21 22:52
Member 1524502413-Jun-21 22:52 
AnswerRe: Interrupted list Pin
OriginalGriff13-Jun-21 21:58
mveOriginalGriff13-Jun-21 21:58 

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.