Your negative lookahead solution would e.g. be this:
\\(?:.(?!\\))+$
See it here on Regexr
Related Posts:
- Graphviz’s executables are not found (Python 3.4)
- Graphviz’s executables are not found (Python 3.4)
- How to fix ingress 404 default backend
- Graphviz’s executables are not found (Python 3.4)
- Setting up enviromental variables in Windows 10 to use java and javac
- Python can’t find my module
- How to change the Jupyter start-up folder
- Running python script inside ipython
- How is the AND/OR operator represented as in Regular Expressions?
- OR condition in Regex
- Using or ‘|’ in regex [duplicate]
- javac is not recognized as an internal or external command, operable program or batch file [closed]
- javac is not recognized as an internal or external command, operable program or batch file [closed]
- What is a Context Free Grammar?
- python .replace() regex [duplicate]
- How can I safely create a nested directory in Python?
- Regex not operator
- What does \’.- mean in a Regular Expression
- Regex not operator
- What do ++ and *+ mean?
- How can I exclude one word with grep?
- Javascript split regex question
- ‘git’ is not recognized as an internal or external command
- How can I validate an email address using a regular expression?
- Regular expression to match a line that doesn’t contain a word
- Matching a space in regex
- Regex not operator
- How to accept space in regex?
- Difference between \b and \B in regex
- How to match “any character” in regular expression?
- regex match any whitespace
- Regex: ignore case sensitivity
- ow can I find where Python is installed on Windows?
- What does the regex \S mean in JavaScript?
- ‘git’ is not recognized as an internal or external command
- whitespace in regular expression
- How can I validate an email address using a regular expression?
- Different between ./ , ../ , ../../ , ~/ on file path(URL) in asp.net
- How do I use a regex in a shell script?
- Regex: ignore case sensitivity
- Importing modules from parent folder
- Python regex AttributeError: ‘NoneType’ object has no attribute ‘group’
- Regular Expression for alphanumeric and underscores
- What is the difference between the regular expressions [^\d\s] and [\D\S]
- Importing modules from parent folder
- Regex: AttributeError: ‘NoneType’ object has no attribute ‘groups’
- Regular Expression for alphanumeric and underscores
- How can I safely create a nested directory in Python?
- re.sub erroring with “Expected string or bytes-like object”
- grep –ignore-case –only
- Regex AND operator
- python re.split() to split by spaces, commas, and periods, but not in cases like 1,000 or 1.50
- python re.split() to split by spaces, commas, and periods, but not in cases like 1,000 or 1.50
- Regex to test if string begins with http:// or https://
- Regular expression negative lookahead
- Regex how to match an optional character
- Regex lookahead, lookbehind and atomic groups
- Regular Expression to match string starting with a specific word
- Regular Expressions: Is there an AND operator?
- Writing a very simple lexical analyser in C++
- ImportError: DLL load failed: %1 is not a valid Win32 application. But the DLL’s are there
- ImportError: DLL load failed: %1 is not a valid Win32 application. But the DLL’s are there
- Regular expression to match standard 10 digit phone number
- Regular Expression.how to add optional character at end of regex
- Regular Expression with wildcards to match any character
- What is a non-capturing group in regular expressions?
- How to find all occurrences of a substring?
- What is a good regular expression to match a URL? [duplicate]
- What is a good regular expression to match a URL? [duplicate]
- Does “\d” in regex mean a digit?
- Understanding regex in Java: split(“\t”) vs split(“\\t”) – when do they both work, and when should they be used
- Is there a difference between /\s/g and /\s+/g?
- Split string on whitespace in Python
- How to validate an email address in PHP
- I need an XPATH to extract data from www.gsmarena.com
- adb is not recognized as internal or external command, operable program or batch file
- What is a non-capturing group in regular expressions?
- RegEx Ignore Case
- JavaScript replace/regex
- Regular expression to match standard 10 digit phone number
- How to use Regular Expressions (Regex) in Microsoft Excel both in-cell and loops
- Python string.replace regular expression
- Get current folder path
- Regex for numbers only
- Python Setup Disabling Path Length Limit Pros and Cons?
- How to match “any character” in regular expression?
- how to replace quotation marks with \”
- Remove all special characters, punctuation and spaces from string
- This can be done without regex:
- How to use Regular Expressions (Regex) in Microsoft Excel both in-cell and loops
- Python string.replace regular expression
- Symbol for any number of any characters in regex?
- CSS Background Image Not Displaying
- Grep and Python
- Regex – Does not contain certain Characters
- Access to the path is denied
- How to replace ” \ ” with ” \\ ” in java
- A regular expression to exclude a word/string
- Regex how to match an optional character
- Relative paths in Python