Click here to Skip to main content
15,562,550 members
Home / Discussions / Regular Expressions
   

Regular Expressions

 
QuestionProblem combining REGEX expressions Pin
Member 156868422-Jan-23 19:40
Member 156868422-Jan-23 19:40 
AnswerRe: Problem combining REGEX expressions Pin
Member 156868423-Jan-23 4:25
Member 156868423-Jan-23 4:25 
GeneralRe: Problem combining REGEX expressions Pin
jschell24-Jan-23 11:38
jschell24-Jan-23 11:38 
Questioni need a regular expression to match a single word starting with m(...followed by any text but not space and )containing Manager Pin
anandssunku9-Jan-23 0:10
anandssunku9-Jan-23 0:10 
AnswerRe: i need a regular expression to match a single word starting with m(...followed by any text but not space and )containing Manager Pin
Richard Deeming9-Jan-23 1:07
mveRichard Deeming9-Jan-23 1:07 
AnswerRe: i need a regular expression to match a single word starting with m(...followed by any text but not space and )containing Manager Pin
jschell10-Jan-23 8:24
jschell10-Jan-23 8:24 
QuestionSometimes its a bullet item, sometimes it is not, sometimes it is multiple bullet items Pin
Member 158838933-Jan-23 23:31
Member 158838933-Jan-23 23:31 
AnswerRe: Sometimes its a bullet item, sometimes it is not, sometimes it is multiple bullet items Pin
OriginalGriff3-Jan-23 23:37
mvaOriginalGriff3-Jan-23 23:37 
GeneralRe: Sometimes its a bullet item, sometimes it is not, sometimes it is multiple bullet items Pin
Member 158838934-Jan-23 0:14
Member 158838934-Jan-23 0:14 
QuestionRegEx- Find files in Linux which match the expression Pin
JDMils3-Jan-23 17:16
JDMils3-Jan-23 17:16 
AnswerRe: RegEx- Find files in Linux which match the expression Pin
Richard MacCutchan3-Jan-23 22:32
mveRichard MacCutchan3-Jan-23 22:32 
AnswerRe: RegEx- Find files in Linux which match the expression Pin
k50544-Jan-23 10:12
mvek50544-Jan-23 10:12 
GeneralRe: RegEx- Find files in Linux which match the expression Pin
JDMils8-Jan-23 13:56
JDMils8-Jan-23 13:56 
QuestionRegular Expression to find parts of a <script/img src=""> or <link href=""> attribute value Pin
Steve M Penner3-Jan-23 6:13
Steve M Penner3-Jan-23 6:13 
QuestionParsing Session Campaign Data in Data Studio Pin
Michael Oct20223-Jan-23 4:16
Michael Oct20223-Jan-23 4:16 
AnswerRe: Parsing Session Campaign Data in Data Studio Pin
Michael Oct20223-Jan-23 6:01
Michael Oct20223-Jan-23 6:01 
QuestionNeed a bit of help concerning RegEx Pin
Regis Maltais 202113-Dec-22 0:42
Regis Maltais 202113-Dec-22 0:42 
AnswerRe: Need a bit of help concerning RegEx Pin
OriginalGriff13-Dec-22 0:47
mvaOriginalGriff13-Dec-22 0:47 
QuestionWhy does this work but this doesn't Pin
Andrew St. Hilaire26-Nov-22 17:52
Andrew St. Hilaire26-Nov-22 17:52 
QuestionRe: Why does this work but this doesn't Pin
k505426-Nov-22 18:30
mvek505426-Nov-22 18:30 
AnswerRe: Why does this work but this doesn't Pin
Andrew St. Hilaire26-Nov-22 18:51
Andrew St. Hilaire26-Nov-22 18:51 
AnswerRe: Why does this work but this doesn't Pin
Richard Deeming27-Nov-22 23:11
mveRichard Deeming27-Nov-22 23:11 
AnswerRe: Why does this work but this doesn't Pin
jschell28-Nov-22 11:42
jschell28-Nov-22 11:42 
QuestionHow to remove an & in the following expressions Pin
Victor Nijegorodov21-Nov-22 9:31
Victor Nijegorodov21-Nov-22 9:31 
AnswerRe: How to remove an & in the following expressions Pin
k505421-Nov-22 11:21
mvek505421-Nov-22 11:21 
Typically, one would use capture grops and replacement expressions. In your case you might do
(.*MyMethod(.*, )&(SomeClass()/s\1\2
If there are many SomeClasses that you would like to replace, you might be able to use
(.*MyMethod(.*, )&(\w*()/s\1\2
Be cautious! I Have not tested either of these, and any time you're experimenting with regular expression replacements, Bad Things can happen. Back up Early! Back up Often!

This all assumes that you actually want to make replacements using Visual Studio, more information for which can be found here:
Keep Calm and Carry On

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.