Ok regex experts. I'm having a ton of trouble trying to make a regex pattern for my needs. The goal: Take a search query such as "good food type:post format:gallery" and parse the type or format or both from the string. This is what I wrote, but doesnt work unless both type and format are present and type comes before format. Ideally, either type or format could be present.Ok regex experts. I'm having a ton of trouble t