Click here to Skip to main content
15,895,746 members

Comments by Trapper-Hell (Top 52 by date)

Trapper-Hell 19-Nov-13 10:22am View    
Thank you for the more informative response.

0. I didn't downvote, honestly. To prove it I'll just rate you a 4.
1. At first I couldn't understand the importance of the ^ $ sign because I was overly used to greedy-expressions (which evaluated as much of the text as possible).
2. That makes more sense. Thank you.
3. I don't intend to use that regular expression, I was just trying to understand why it was acting that slow.
Trapper-Hell 19-Nov-13 10:19am View    
Deleted
Thank you for the more informative response.

0. I didn't downvote, honestly. To prove it I'll just rate you a 3.
1. At first I couldn't understand the importance of the ^ $ sign because I was overly used to greedy-expressions (which evaluated as much of the text as possible).
2. That makes more sense. Thank you.
3. I don't intend to use that regular expression, I was just trying to understand why it was acting that slow.
Trapper-Hell 19-Nov-13 10:13am View    
Thank you for the link, it has been insightful :) But can you please attempt to answer the questions I posted? Specifically how does the parser try to evaluate the expression (such that it becomes so slow?)
Trapper-Hell 19-Nov-13 10:03am View    
Thank you for the reply. And yes I am aware that the ^ $ signs indicate that it must match from the beginning to the end. But why does the $ sign in the end turns the Regex from instantaneous to extremely slow?

And how will the Regex engine parse the Regex I pasted? (Consider the Questions section within my question). Thanks!
Trapper-Hell 28-Oct-13 6:42am View    
Deleted
If this has solved your question, kindly mark it as Accepted Answer, otherwise provide more detail so that we may be able to assist you further. Thanks.