I don't think your example does what you think it does, match fo followed by o zero or more times, followed by bar.
when you do understand regex, you'll be amazed at the myriad of things you can do with it.
when you do understand regex, you'll be amazed at the myriad of things you can do with it.