What Could Be RegExp For?
What can be the RegEx for matching all spaces in quotes but not quotes.. Example: "This is testing text" My RegEx: (?<=\")\s+(?=\") The above RegExp is not matching all spaces..
View ArticleDetect only internal links containing the rel noopener
Hello, I would like to process a regex to look for only the internal links containing the rel="noopener" For example search for this link:HTMLCopy...
View ArticleMatching exact string with a vertical bar and square brackets
I want to match exact strings with a vertical bar and square brackets, but I want to match the shortest possible. Meaning, I want to match the string [aaa|bbb] not anything in this [aaa] | [bbb] or...
View ArticleInterrupted list
Hi to all! My name is Dumitru, and I am a newbie to regex. My situation is that I studied some regex on my own, but I realized I have some lacks so I have to ask other people who really understand...
View ArticleNeed some help with regular expression
I am trying to match the following sample patterns: - 1 - 23-4B - 2,1-12 - 15A - 2-5,12 - 12A-4 so I tried the following regex but it seems it only matches some of above patterns......
View ArticleRegex select from list
Hello, I am trying to learn Regex on my own, but got stuck with select from an unordered list. At this moment i managed to list the cattegories, but i cant figure how to 1) capture the node ID for each...
View ArticleEmployer Identification Number (EIN) Regex
We are trying to create a new policy to detect Employer Identification Number (EIN) in MCAS. I'm very new to Regex so I need some help. We've tried the below regex and MCAS is showing me an error of:...
View ArticleProblem capturing last group in a line: CLOSED
Don't know if this is the correct solution but it seems to work. Using the RegexOptions.RightToLeft option seems to work. I'm not too familiar with Regex. I've created an expression to capture data in...
View ArticleRegex to match exact word and dash symbol
hi would any one have a regex that would match (aug -) or(july -) or (june -)without the brackets but would not match just (aug)or (july) or (june) So far i have \W*((?i)aug -(?-i))\W* but this also...
View ArticleTrying to match a string with many backslashes
Hello there, I have a string that looks like thisXMLCopy Code \abc\rvr\sad\dqwdwq Some text \rfdqwdvr\rtgevr\rgwvrr\23rvrv Some text \rffewvr\rfewvr\rvfewrr\rvrwefewv I want to match the parts of the...
View ArticleRegex Match with Multiple Words, I need you to not use leading and trailing...
I use Regex match to find multiple words in Like mode (start and end point). I do not want the return to include the space as the first position and I do not want the final space to count as valid....
View Articleregex to replace accents
I have this regex to replace accents but it fails if the text contains "|". string Text = "word|word2";C#Copy Code// Regex. System.Text.RegularExpressions.Regex replace_a_Accents = new...
View ArticleEditing my existing Regex
Hi, im relatively new to regex and im trying to match OU from the Distinguished Name in ActiveDirectory. This is my existing regex: (((OU=.*?))?)OU=(?<ouname>.*?(?=,)) CN=Muster\,...
View Articlefail2ban regex matching on testing sites but not fail2ban itself
I've a weird situation. I created a regex expression for one of the service. I've tested this expression at regexr.com and regex101.com and there are no problems at all. when I used this regex...
View ArticleRegular expression to extract row 3
Hi! Could anyone pls help med with a regex that extracts row 3 (Summer AB) only? 805 1506678441522 Summer AB 4302334 4302334 Structure DBT.4302334"
View ArticleHow to eliminate Pattern if Contains specific words
I have an alias.txt file that looks like thisShellCopy Code CHALET_HIST_ARCHIVE - zz** Chalet History Archive **zz CHALET_Practice - CHALET Retail ***Practice*** CHALET - CHALET CPPractice - ***NCR...
View ArticleHow do I make this CASE INSENSATIVE?
(?!^.*((Practice)|(ARCHIVE)|(CpSystem)|(RESTORE)).*$)(^\s*\w*) Want to make Practice, Archive, CPSystem, and Restore case insensative. I...
View ArticleFind and Replace starting... until
Hi, I'm trying to figure how to 'find and replace' a textstring within a textfile. But the find and replace within the file has to only start after a certain textstring and it also has to stop before a...
View Articleregex related query
I am having a text file having some text to be remove enclosed within a defined tag (234 in the example below). This to-be removed text is not fixed and can occur multiple times in a single line OR can...
View ArticleUse content of a database field in RegEx
I want to be able to use the content of a database table as part of a regex expression. This isn't the actual use case, but it shows what I want to do. Database table includes a field with customer...
View Article