# matchesProfiles method

bool matchesProfiles(

1. List<String> profileExpressions

)

Profile Expression Matcher

Returns `true` if the provided profile expressions match against the environment's active (or default) profiles.

This is a convenience wrapper around acceptsProfiles, which accepts a prebuilt Profiles instance.

# Example

    if (env.matchesProfiles(['dev & !test'])) {
      print('Running in development without tests enabled');
    }

# Behavior

- Supports expressions such as:
  - `&` (AND)
  - `|` (OR)
  - `!` (NOT)
  - Parentheses for grouping
- Automatically converts the given expressions into a Profiles instance before evaluation.

# Notes

- Throws EnvironmentParsingException if an invalid expression is passed.

## Implementation

    bool matchesProfiles(List<String> profileExpressions) =>
        acceptsProfiles(Profiles.of(profileExpressions));