Click here to Skip to main content
16,020,103 members
Home / Discussions / Regular Expressions
   

Regular Expressions

 
QuestionRegex for a Customer number Pin
poornima sadasivan30-Mar-21 4:11
poornima sadasivan30-Mar-21 4:11 
AnswerRe: Regex for a Customer number Pin
SeanChupas30-Mar-21 5:27
SeanChupas30-Mar-21 5:27 
AnswerRe: Regex for a Customer number Pin
jschell9-Apr-21 15:21
jschell9-Apr-21 15:21 
QuestionIgnoring repeating values? Pin
Jason Hotchkiss 202124-Mar-21 8:17
Jason Hotchkiss 202124-Mar-21 8:17 
AnswerRe: Ignoring repeating values? Pin
w 3g24-Mar-21 10:45
w 3g24-Mar-21 10:45 
GeneralRe: Ignoring repeating values? Pin
Jason Hotchkiss 202125-Mar-21 1:06
Jason Hotchkiss 202125-Mar-21 1:06 
QuestionReplace certain characters in part of string? Pin
w 3g22-Mar-21 1:54
w 3g22-Mar-21 1:54 
AnswerRe: Replace certain characters in part of string? Pin
Richard Deeming22-Mar-21 2:08
mveRichard Deeming22-Mar-21 2:08 
Depends on the regex engine you're using.

For example, in C#, you can use a zero-width positive look-behind assertion[^]:
C#
Regex re = new Regex("(?<=.*v.*)\s+");
string[] parts = re.Split("I want to solve this problem");
// parts === { "I want to solve", "this", "problem" }




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

GeneralRe: Replace certain characters in part of string? Pin
w 3g22-Mar-21 23:38
w 3g22-Mar-21 23:38 
GeneralRe: Replace certain characters in part of string? Pin
Richard Deeming22-Mar-21 23:49
mveRichard Deeming22-Mar-21 23:49 
GeneralRe: Replace certain characters in part of string? Pin
w 3g23-Mar-21 0:21
w 3g23-Mar-21 0:21 
QuestionRegex only want the first match Pin
Member 150872251-Mar-21 11:04
Member 150872251-Mar-21 11:04 
AnswerRe: Regex only want the first match Pin
Aghast (nj)9-Mar-21 17:53
Aghast (nj)9-Mar-21 17:53 
Questionregex pattern in order to get a list of numbers from a string Pin
Rafael Soteldo17-Feb-21 4:48
Rafael Soteldo17-Feb-21 4:48 
AnswerRe: regex pattern in order to get a list of numbers from a string Pin
Aghast (nj)9-Mar-21 17:51
Aghast (nj)9-Mar-21 17:51 
QuestionString Replacement in 'HTML 5 FireFox' Pin
Member 1357268429-Dec-20 0:47
Member 1357268429-Dec-20 0:47 
AnswerRe: String Replacement in 'HTML 5 FireFox' Pin
OriginalGriff29-Dec-20 0:54
mveOriginalGriff29-Dec-20 0:54 
GeneralRe: String Replacement in 'HTML 5 FireFox' Pin
Member 1357268429-Dec-20 1:04
Member 1357268429-Dec-20 1:04 
GeneralRe: String Replacement in 'HTML 5 FireFox' Pin
OriginalGriff29-Dec-20 1:39
mveOriginalGriff29-Dec-20 1:39 
GeneralRe: String Replacement in 'HTML 5 FireFox' Pin
Member 1357268429-Dec-20 1:51
Member 1357268429-Dec-20 1:51 
GeneralRe: String Replacement in 'HTML 5 FireFox' Pin
OriginalGriff29-Dec-20 2:23
mveOriginalGriff29-Dec-20 2:23 
GeneralRe: String Replacement in 'HTML 5 FireFox' Pin
Member 1357268429-Dec-20 9:20
Member 1357268429-Dec-20 9:20 
GeneralRe: String Replacement in 'HTML 5 FireFox' Pin
OriginalGriff29-Dec-20 9:35
mveOriginalGriff29-Dec-20 9:35 
GeneralRe: String Replacement in 'HTML 5 FireFox' Pin
Member 1357268429-Dec-20 9:45
Member 1357268429-Dec-20 9:45 
GeneralRe: String Replacement in 'HTML 5 FireFox' Pin
OriginalGriff29-Dec-20 10:05
mveOriginalGriff29-Dec-20 10:05 

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.