Explore

regex ×
  • screenshot

    Regular expression to match range of numbers

    Now there is an algorithm question that requires you to generate a regular expression. The generated...

  • screenshot

    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...

  • screenshot

    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: ['', '',...

  • screenshot

    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...

  • screenshot

    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...

  • screenshot

    perl regex negative lookahead replacement with wildcard

    Updated with real and more complicated task: The problem is to substitute a certain pattern to...

  • screenshot

    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...

  • screenshot

    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...

  • screenshot

    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....

  • screenshot

    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...

  • screenshot

    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 :...

  • screenshot

    Regex for DOB range

    Please could you help with regex for DOB range between 01.09.2021 and 31.08.2022 only. I need...

  • screenshot

    Regex to group numbers in threes excluding decimals

    How can I define a regex that groups a number into threes excluding decimals? Example 1123456789...

  • screenshot

    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...

  • screenshot

    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...

  • screenshot

    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---...

  • screenshot

    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...