Skip to content

Make Use-RegEx -Extract smarter #81

@StartAutomating

Description

@StartAutomating

Is your feature request related to a problem? Please describe.

Use-RegEx -Extract is great for creating a property bag. It could be even more helpful if it auto-converted primitive types, such as [Timespan], [Datetime], [float], [int], [bool] . This functionality is possible with -Coerce, but requires knowledge of each capture.

Describe the solution you'd like

Either:

  • Make -Extract auto-coerce primitive types
  • Make a [switch] parameter controls auto-coercion
  • Make a parameter that allows one to control the method of -Extraction, with a value that allows auto-coercion.

Metadata

Metadata

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions