Arch4ngel Posted August 26, 2004 Posted August 26, 2004 Do you use it ? How often ? Do you try to avoid it ? Quote "If someone say : "Die mortal !"... don't stay to see if he isn't." - Unknown "Learning to program is like going out with a new girl friend. There's always something that wasn't mentioned in the documentation..." - Me "A drunk girl is like an animal... it scream at everything like a cat and roll in the grass like a dog." - Me after seeing my girlfriend drunk and some of her drunk friend. C# TO VB TRANSLATOR
fenris Posted August 26, 2004 Posted August 26, 2004 I try to use them when ever I need to parse big strings (anything over 1000 chars). I am not very good at using them, but every attempt helps... Quote
Arch4ngel Posted August 26, 2004 Author Posted August 26, 2004 Personnally... I use it for HTML analysis. It's powerful to the bone. Quote "If someone say : "Die mortal !"... don't stay to see if he isn't." - Unknown "Learning to program is like going out with a new girl friend. There's always something that wasn't mentioned in the documentation..." - Me "A drunk girl is like an animal... it scream at everything like a cat and roll in the grass like a dog." - Me after seeing my girlfriend drunk and some of her drunk friend. C# TO VB TRANSLATOR
jspencer Posted August 26, 2004 Posted August 26, 2004 Hard to use initially, but ever so satisfying...... Quote
Arch4ngel Posted August 26, 2004 Author Posted August 26, 2004 I must admit... it's not easy to learn. But the power of this tool is well rewarded (up to my knowledge limit) Quote "If someone say : "Die mortal !"... don't stay to see if he isn't." - Unknown "Learning to program is like going out with a new girl friend. There's always something that wasn't mentioned in the documentation..." - Me "A drunk girl is like an animal... it scream at everything like a cat and roll in the grass like a dog." - Me after seeing my girlfriend drunk and some of her drunk friend. C# TO VB TRANSLATOR
samsmithnz Posted August 26, 2004 Posted August 26, 2004 I'm the guy who'd rather write 200 lines :) I've never enjoyed functional programming. Quote Thanks Sam http://www.samsmith.co.nz
Jay1b Posted August 26, 2004 Posted August 26, 2004 I've never actually been in a situation where it would help save me time. I have used it, purely to say 'hey i've done that' - but it would of probably been quicker and easier not too in this situation. Quote
*Experts* Nerseus Posted August 26, 2004 *Experts* Posted August 26, 2004 I would/do use it whenever I have to split any string and I expect more than two pieces. If I just have two pieces, I'll use IndexOf. I like the readability of the named groups in a regular expresion. I also use it for validation of strings, if needed. My company uses it this way and I love it! There's custom code to do the actual validation, but to define a new "datatype" for a DataSet column we use regular expressions (when needed of course). -nerseus Quote "I want to stand as close to the edge as I can without going over. Out on the edge you see all the kinds of things you can't see from the center." - Kurt Vonnegut
Arch4ngel Posted August 26, 2004 Author Posted August 26, 2004 Yeah I agree with you. I won't use Regex when it's "abusive" if you know what I mean... Using a regex while you can use a IndexOf is like trying to kill a fly with a bazooka. You're using a powerful tool to make a light job that would need only 1 function. Like I said before... I had (1 weeks or 2 ago) to get all the content of all href in a web page. I could have done that with IndexOf but... what a mess it would have taked... I would have made a custom function and it would have taked me 5 minutes more. I must admit that I took about 3 or 4 hours to learn as much as possible about RegEx. So all this work was maybe painful... but how much rewarding ? I know a little bit about RegEx and I really enjoy using it when it's possible. Think about it... it's a tool that is already done and is working. What are you asking for ? Okay... it's a little hard to understand if you didn't even touch to that... but once you made 1 or 2 expression on your own... well... you're rewarded ! Because RegEx isn't only used by Microsoft. RegEx can also be used in PHP and many more language. Well... that's it. That's my point. Quote "If someone say : "Die mortal !"... don't stay to see if he isn't." - Unknown "Learning to program is like going out with a new girl friend. There's always something that wasn't mentioned in the documentation..." - Me "A drunk girl is like an animal... it scream at everything like a cat and roll in the grass like a dog." - Me after seeing my girlfriend drunk and some of her drunk friend. C# TO VB TRANSLATOR
Leaders Iceplug Posted August 27, 2004 Leaders Posted August 27, 2004 I use it only when necessary and more helpful that IndexOf and other string functions. There's not much that I'll have to use it for in making games and other supplemental tools... I try to save all of my regular expressions because it takes so long (for me) to get a working one. :) Quote Iceplug, USN One of my coworkers thinks that I believe that drawing bullets is the most efficient way of drawing bullets. Whatever!!! :-(
*Gurus* divil Posted September 6, 2004 *Gurus* Posted September 6, 2004 What if I use them all the time, but it's also the name of my dog? Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
Moderators Robby Posted September 6, 2004 Moderators Posted September 6, 2004 I use it and I hate it! :eek: Quote Visit...Bassic Software
Arch4ngel Posted September 7, 2004 Author Posted September 7, 2004 LOLLLLL..... well... I haven't predicted that !!!!!! LOLLLLLLLLLLLL Quote "If someone say : "Die mortal !"... don't stay to see if he isn't." - Unknown "Learning to program is like going out with a new girl friend. There's always something that wasn't mentioned in the documentation..." - Me "A drunk girl is like an animal... it scream at everything like a cat and roll in the grass like a dog." - Me after seeing my girlfriend drunk and some of her drunk friend. C# TO VB TRANSLATOR
Arch4ngel Posted September 7, 2004 Author Posted September 7, 2004 Why do you hate them ? I know they are kinda complex to use but... they are so powerful... Could you tell me more ? Quote "If someone say : "Die mortal !"... don't stay to see if he isn't." - Unknown "Learning to program is like going out with a new girl friend. There's always something that wasn't mentioned in the documentation..." - Me "A drunk girl is like an animal... it scream at everything like a cat and roll in the grass like a dog." - Me after seeing my girlfriend drunk and some of her drunk friend. C# TO VB TRANSLATOR
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.