Click here to Skip to main content
15,071,581 members
Home / Discussions / Regular Expressions
   

Regular Expressions

 
Questionregex to replace accents Pin
Member 1489067816-Sep-21 3:50
MemberMember 1489067816-Sep-21 3:50 
AnswerRe: regex to replace accents Pin
Richard Deeming16-Sep-21 4:28
mveRichard Deeming16-Sep-21 4:28 
GeneralRe: regex to replace accents Pin
Richard MacCutchan16-Sep-21 4:44
mveRichard MacCutchan16-Sep-21 4:44 
GeneralRe: regex to replace accents Pin
Richard Deeming16-Sep-21 4:55
mveRichard Deeming16-Sep-21 4:55 
GeneralRe: regex to replace accents Pin
Richard MacCutchan16-Sep-21 5:05
mveRichard MacCutchan16-Sep-21 5:05 
GeneralRe: regex to replace accents Pin
Member 1489067816-Sep-21 5:38
MemberMember 1489067816-Sep-21 5:38 
GeneralRe: regex to replace accents Pin
Richard Deeming16-Sep-21 5:54
mveRichard Deeming16-Sep-21 5:54 
GeneralRe: regex to replace accents Pin
Member 1489067816-Sep-21 5:39
MemberMember 1489067816-Sep-21 5:39 
AnswerRe: regex to replace accents Pin
Peter_in_278016-Sep-21 4:45
professionalPeter_in_278016-Sep-21 4:45 
QuestionRegex Match with Multiple Words, I need you to not use leading and trailing spaces. Pin
Member 1489067816-Sep-21 3:07
MemberMember 1489067816-Sep-21 3:07 
QuestionTrying to match a string with many backslashes Pin
Florian Rammler31-Aug-21 1:35
MemberFlorian Rammler31-Aug-21 1:35 
AnswerRe: Trying to match a string with many backslashes Pin
Richard Deeming31-Aug-21 2:55
mveRichard Deeming31-Aug-21 2:55 
QuestionRegex to match exact word and dash symbol Pin
Member 1533502224-Aug-21 9:28
MemberMember 1533502224-Aug-21 9:28 
AnswerRe: Regex to match exact word and dash symbol Pin
OriginalGriff24-Aug-21 9:32
mveOriginalGriff24-Aug-21 9:32 
GeneralRe: Regex to match exact word and dash symbol Pin
Member 1533502224-Aug-21 10:00
MemberMember 1533502224-Aug-21 10:00 
AnswerRe: Regex to match exact word and dash symbol Pin
User 1521787324-Aug-21 17:47
MemberUser 1521787324-Aug-21 17:47 
GeneralRe: Regex to match exact word and dash symbol Pin
Member 1533502224-Aug-21 22:57
MemberMember 1533502224-Aug-21 22:57 
GeneralRe: Regex to match exact word and dash symbol Pin
User 1521787324-Aug-21 23:32
MemberUser 1521787324-Aug-21 23:32 
GeneralRe: Regex to match exact word and dash symbol Pin
Member 1533502224-Aug-21 23:37
MemberMember 1533502224-Aug-21 23:37 
GeneralRe: Regex to match exact word and dash symbol Pin
User 1521787325-Aug-21 0:08
MemberUser 1521787325-Aug-21 0:08 
GeneralRe: Regex to match exact word and dash symbol Pin
Member 1533502225-Aug-21 0:24
MemberMember 1533502225-Aug-21 0:24 
GeneralRe: Regex to match exact word and dash symbol Pin
User 1521787325-Aug-21 1:11
MemberUser 1521787325-Aug-21 1:11 
QuestionProblem capturing last group in a line: CLOSED Pin
mo149222-Aug-21 13:18
Membermo149222-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
Membermo149223-Aug-21 6:17 

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.