Showing posts with the label python-regex

[FIXED] How does regex.WORD affect the behavior of \b?

Issue I'm using the PyPI module regex for regex matching. It says Default

[FIXED] Simple case folding vs full case folding in Python regex module

Issue This is the module I'm asking about: https://pypi.org/project/regex/ , it's Matthew B…

[FIXED] Python regexes: matching parentheses in newest version (Feb 2019)

Issue 1. About Python regex 2019.02.21 Python is upgrading the regex module. The latest release …

[FIXED] How can I use a recursive regex or another method to recursively validate this BBcode-like markup in Python?

Issue I am attempting to write a program that validates documents written in a markup language simi…

[FIXED] Regular expression for finding a sub-string

Issue I am trying to find all occurances of a sub-string using regular expression. The sub-string i…

[FIXED] regex with repeated group names

Issue I'm trying to make a regex where I have some duplicated group names, for instance, in the…

[FIXED] How to refer to a named capturing group in the Python PyPi regex pattern

Issue As the title reads, we can easily match nested parentheses in regex with e.g. (\(((?:[^()]+|…

[FIXED] Regex Replace Words Containing Specified Substring

Issue I am trying to replace words in my string that contain a certain substring. Here is an exampl…

[FIXED] How to remove all emoji (unicode) characters from a string python

Issue I have the following string: tweet = "Get $10 worth of AMAL!!\\nThis campaign will be f…

[FIXED] Ansible regex_findall is not giving expected results with negative search

Issue My ansible negative regex is returning everything So I'm getting results of dns names fr…

[FIXED] Python regex groupDict with repetitions of groups

Issue Wondering if there is a function such as match.groupdict() that catches repetition similar t…

[FIXED] re.sub replace with matched content

Issue Trying to get to grips with regular expressions in Python, I'm trying to output some HTML…

[FIXED] Failing to match number ranges with pattern declared in DEFINE block using PyPi regex package

Issue I'm using https://github.com/mrabarnett/mrab-regex (via pip install regex , but experien…

[FIXED] Replace An Exact Grouped Part in RegEx Python

Issue I have a template that I need to replace a part of that using Regex in Python. Here is my tem…

[FIXED] Regex - negative lookbehind for any character excluding pure whitespace

Issue I'm trying to write a regex pattern that will fail a match if the preceding pattern conta…

[FIXED] How does BestMatch findall decide how many results to return?

Issue I'm struggling to predict how many fuzzy matches findall() will return when using regex …

[FIXED] Extract subtring using regex python

Issue Hello I have this string and I need extract from this some sub strings according some delimit…

[FIXED] Split a string with multiple delimiter & create a separate list

Issue I have a python string that contains a list of words separated by either a plus or minus sign…

[FIXED] More elegant way of replacing substring of text that was matched with regex

Issue I am new to python so I would like to get a few ideas for this. I am writing a function to fi…

[FIXED] How to use Python Regex to match url

Issue I have a string: test_string="lots of other html tags ,'https://news.sky.net/upload…