Make .*
non-greedy by adding ‘?
‘ after it:
Project name:\s+(.*?)\s+J[0-9]{7}:
More Related Contents:
- How to extract all Yahoo emails from a .CSV file?
- Regular expression to remove fancy apostrophe [closed]
- How does the () and [] come into play with regex?
- Regular Expression for ” – ” and characters after [closed]
- Regex match entire words only
- Regular expression to match DNS hostname or IP Address?
- Is there a regular expression to detect a valid regular expression?
- What is a regular expression which will match a valid domain name without a subdomain?
- How can I recognize an evil regex?
- Extract a substring according to a pattern
- How to extract text from a string using sed?
- Using sed to delete all lines between two matching patterns
- Regex lookahead for ‘not followed by’ in grep
- RegEx for both, integer and float [closed]
- regular expression for Indian mobile numbers
- Why is this regex using lookbehinds invalid in R?
- Fully qualified domain name validation
- Fixing Catastrophic Backtracking in Regular Expression
- apache HTTP:X-Forwarded-Proto in .htaccess is causing redirect loop in dev environment
- Dollar sign in regular expression and new line character
- JavaScript: split doesn’t work in IE?
- How to use RegEx in Dart?
- Regex for youtube URL
- What do \S, \W, \D stand for in regex?
- Using RegEX To Prefix And Append In Notepad++
- How to match the first word after an expression with regex?
- When is it best to use Regular Expressions over basic string splitting / substring’ing?
- Overlapping matches in R
- Bash – Regex for HTML contents
- Extracting text after last period in string [duplicate]