The alternative way to get rid of the warning is change the regex so that it is a matching group and not a capturing group. That is the (?:)
notation.
Thus, if the matching group is (url1|url2)
it should be replaced by (?:url1|url2)
.
More Related Contents:
- Fast punctuation removal with pandas
- Create Pandas DataFrame from txt file with specific pattern
- How to filter rows in pandas by regex
- How to remove parentheses and all data within using Pandas/Python?
- re.sub erroring with “Expected string or bytes-like object”
- Strip / trim all strings of a dataframe
- pandas applying regex to replace values
- FutureWarning: The default value of regex will change from True to False in a future version
- applying regex to a pandas dataframe
- How to use str.contains() with multiple expressions in pandas dataframes
- How to parse complex text files using Python?
- How do you validate a URL with a regular expression in Python?
- Rename Pandas DataFrame Index
- Convert row to column header for Pandas DataFrame,
- Use AWS Glue Python with NumPy and Pandas Python Packages
- Pandas read csv file with float values results in weird rounding and decimal digits
- pandas – filter dataframe by another dataframe by row elements
- How to set some xlim and ylim in Seaborn lmplot facetgrid
- Left justify string values in a pandas DataFrame
- Override global variable inside function not working with Spyder 4
- Pandas: Datetime Improperly selecting day as month from date [duplicate]
- join or merge with overwrite in pandas
- Re.sub not working for me
- Does Flask support regular expressions in its URL routing?
- Pandas Data Frame how to merge columns
- Detect strings with non English characters in Python
- How to delete the last row of data of a pandas dataframe
- Got continuous is not supported error in RandomForestRegressor
- Splitting a math expression string into tokens in Python
- Can I perform dynamic cumsum of rows in pandas?