title: Search string for percentage
body: <p>I'm using c#. I need a method that will take a string as input, search for the percent symbol in that string, then return the number directly in front of the percent symbol. for example <code>"asdf sdfa asf 32% asdf"</code> would return 32. <code>"asdfl asfi asdf kd 34.5% adsfkjfg"</code> would return 34.5. I know how to find the index of the percent symbol then loop backwards searching for a space, and return everything in the middle. I feel there is probably a more efficient way to do it.</p>