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.
 
Back
Top