What is the difference between the .*? and .* regular expressions?
I'm trying to split up a string into two parts using a regular expression. The string is formatted as follows: text to extract<number> I've been using (.*?)< and <(.*?)> which work fine, but after reading into regular expressions a little, I've just started to wonder why I need the ? in the expressions. I've only done it like that after finding them through this site. What is the difference?
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.