Click here to Skip to main content
15,041,025 members
Home / Discussions / Regular Expressions
   

Regular Expressions

 
AnswerRe: Regex for a Customer number Pin
SeanChupas30-Mar-21 5:27
MemberSeanChupas30-Mar-21 5:27 
AnswerRe: Regex for a Customer number Pin
jschell9-Apr-21 15:21
Memberjschell9-Apr-21 15:21 
QuestionIgnoring repeating values? Pin
Jason Hotchkiss 202124-Mar-21 8:17
MemberJason Hotchkiss 202124-Mar-21 8:17 
AnswerRe: Ignoring repeating values? Pin
w 3g24-Mar-21 10:45
Memberw 3g24-Mar-21 10:45 
GeneralRe: Ignoring repeating values? Pin
Jason Hotchkiss 202125-Mar-21 1:06
MemberJason Hotchkiss 202125-Mar-21 1:06 
QuestionReplace certain characters in part of string? Pin
w 3g22-Mar-21 1:54
Memberw 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 
GeneralRe: Replace certain characters in part of string? Pin
w 3g22-Mar-21 23:38
Memberw 3g22-Mar-21 23:38 
Thanks, Richard, for your answer!
I am using regex with javascript, developing for popular browsers.

So, if I understand correctly, your code splits the string into 3 parts, the first part being everything until the first space after the first "v", the other parts being the rest of the string split by spaces. I am sure that will work.

Well, what I was looking for - this is a more theoretical and general question - is there an operator you can use in regexes which does something like "apply the following only to the previously matched part"? For example:

/v.*#c/g

Explanation: The first part of the regex is "v.*" which means: Match the part of the string after the first v. The second part is "c", which will match every c. Now, is there an operator (here symolized by #) between the 2 parts of the regex, which means: "Apply the part after this operator ("c") to the result of the part before the operator ("v.*)"? It is like: Do a secondary match inside the primary match.

Sorry, English is not my native language, but I still hope, I could make my point clear.

Thank you.
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
Memberw 3g23-Mar-21 0:21 
QuestionRegex only want the first match Pin
Member 150872251-Mar-21 11:04
MemberMember 150872251-Mar-21 11:04 
AnswerRe: Regex only want the first match Pin
Aghast (nj)9-Mar-21 17:53
MemberAghast (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
MemberRafael 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
MemberAghast (nj)9-Mar-21 17:51 
QuestionString Replacement in 'HTML 5 FireFox' Pin
Member 1357268429-Dec-20 0:47
MemberMember 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
MemberMember 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
MemberMember 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
MemberMember 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
MemberMember 1357268429-Dec-20 9:45 
GeneralRe: String Replacement in 'HTML 5 FireFox' Pin
OriginalGriff29-Dec-20 10:05
mveOriginalGriff29-Dec-20 10:05 
GeneralRe: String Replacement in 'HTML 5 FireFox' Pin
Dave Kreskowiak29-Dec-20 16:15
mveDave Kreskowiak29-Dec-20 16:15 

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.