parsing strings

  • Thread starter Thread starter laimis
  • Start date Start date
L

laimis

Hey guys,

ever since I started programming, i used to parse strings using methods
such as find the index of the delimeter, extract the string using substring.

Now i was thinking that regex could be of use here and might work even
better with its Match class.

Which method do you think is better?
 
Regex is handy for complex pattern matching and splits, but IMO for a simple
delimiter split of a string, the Split() method works well. Probably
requires less resources as well.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top