ugakebet 4 Posted July 2, 2011 Report Share Posted July 2, 2011 Hey guys, I use this for regex http://gskinner.com/RegExr/ Suppose I want to choose the first instance of a sentence I use ([A-Z].*?[\.]) and it will select every sentence? Why? Or if I use ([\w-\.]+)@((?:[\w]+\.)+)([a-zA-Z]{2,4}) to select email addresses, how do I limit this to choose only the first email address, and not all the e,ail addresses? Quote Link to post Share on other sites
Kreatus (Ubot Ninja) 422 Posted July 2, 2011 Report Share Posted July 2, 2011 Try this ^[^.!?]* Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.