\?(.*)
You want the content of the first capture group.
More Related Contents:
- RegEx for Multi-Words Without Numbers and Any Special Characters
- What is this pattern “\\s*\\^++\\s*” used for? [duplicate]
- Regular expression to match balanced parentheses
- How do I deal with special characters like \^$.?*|+()[{ in my regex?
- Regular expression for a string containing one word but not another
- Regular expression that matches valid IPv6 addresses
- How to capture multiple repeated groups?
- Regular expression to enforce complex passwords, matching 3 out of 4 rules
- Regular expression to allow spaces between words
- Regular expression for a string that does not start with a sequence
- Regex: Specify “space or start of string” and “space or end of string”
- Regex to disallow more than 1 dash consecutively
- Is it possible for a computer to “learn” a regular expression by user-provided examples?
- How .* (dot star) works? [closed]
- Delete all content but keeping matched
- How do you extract IP addresses from files using a regex in a linux shell?
- regex for zip-code
- Bash, grep between two lines with specified string
- Regex to match 2 digits, optional decimal, two digits
- Extracting top-level and second-level domain from a URL using regex
- HTML5 input pattern search for quote
- When should I not use regular expressions?
- regex to remove ordinals
- Replace a word with multiple lines using sed?
- Regular Expression Vs. String Parsing
- .htaccess RewriteRule to path without changing URL
- Can extended regex implementations parse HTML?
- How to get Vim to highlight non-ascii characters?
- Regexp for subdomain
- Extracting text after last period in string [duplicate]