Explore
Regular expression to match range of numbers
Now there is an algorithm question that requires you to generate a regular expression. The generated...
Finding substrings of multiple specific lengths (finding 5 and 6-digit numbers in string)
I have a like this => list_o_text= [ 'Random string 1 2 3 45 6789 999999...
Regular expression pattern \W* matching empty string in string
START import re print(re.split(r'\W*', '...words...')) END The output of the above python code is: ['', '',...
Regex case-insensitive search, but have output match the case in the regex
Recently I rewrote my program to find words that are made of chemical symbol abbreviations, for...
I need a JavaScript regular expression that matches a domain which contains 2 or more characters
I need a simple JavaScript regular expression to match URLs in a string. This is what...
perl regex negative lookahead replacement with wildcard
Updated with real and more complicated task: The problem is to substitute a certain pattern to...
3 Examples of Regular Expressions in C# For Beginners
Discover straightforward examples of regular expressions in C# for beginners, focusing on pattern matching and text...
A Beginner's Guide to Regex Options in C#
Discover the capabilities of regular expressions in C#, from pattern matching to text manipulation. Explore various...
Extract digits from string until non-digit character appears
I'd like to extract all digits that occur in a string until a non-digit character appears....
Dynamically identify regex pattern from given List of Strings
Dynamically identify regex pattern from the given list of String abc12345 abc22434 abcewewew abc232323 If you...
i have extracted some values using regex in beanshell postprocessor now i have to pick a random value and store it into a varaible?
import java.util.Random; import java.util.regex.Pattern; import java.util.regex.Matcher; String responseData = prev.getResponseDataAsString(); // log.info("the response data is :...
Regex for DOB range
Please could you help with regex for DOB range between 01.09.2021 and 31.08.2022 only. I need...
Regex to group numbers in threes excluding decimals
How can I define a regex that groups a number into threes excluding decimals? Example 1123456789...
How to exclude lines including a specific set of characters using regex in Python
I wonder if someone can help me, please. I am trying to use regex in Python...
Regular expression - match period (.) at end of word
Okay here's a weird one. I want to replace an acronym within a string with another...
How to grep on grep with regex? How to match only numbers and dots from a grep?
Code: --------- curl -s https://packagist.org/packages/drupal/core | grep -oP ''.* --------- ---Quote--- 10.2.2 ---End Quote---...
Extract and replace text matching multi-line pattern after keyword
I am trying to transform a yaml document in order to make it easier to parse...