0

I have a long string and I need to take part of it according to a certain condition. Let's say I have the following string:

string str = "fjashfdkj sdbf hbdf sfbjsh  hsdfj T=\"sadhj ad jh\" kdhad a P=\"sdkahda\"";

I want to take everything that is in " " after T= or P=. Is it possible to do that without knowing how many values are inside of quotation marks? As I figured I could find the location of T= in the string and check the next 12 values after, if I knew how many values there are.

darklup
  • 63
  • 7

0 Answers0