how do you create a field using regex with the following example below
I would like to extract microsoft from the above field?
What would be proper regex used to extract this?
Have you tried any of solution below? They both should work for you. If you want little more specific regex based on your data, you can try this
cpe\:\/(o|a)\:(?<YourFieldName>[^\:]+). (Basically look for either cpe:/a: or cpe:/o: and capture everything after that till next colon)
To build a proper regex, you need to describe your data properly, it has to have some reliable characteristics.
With your example above, multiple characteristics are possible, but without further example data it's hard to find those similarities.
This is an example:
This one would assume that there is always to parts in that field, seperated by
:, and the value you want to extract is between the second and third
:. If that's true - here's your regex 😉