An output can also be extracted with a regular expression when the needed value is easier to find in raw text. This example keeps path-based outputs for normal response fields and adds a regex output for the request method. The video tests both extraction styles in the same API file.
```
type: api
inputs:
user: mehrdad
pass: 123456
outputs:
connection: body.headers.connection
user-agent: body.headers.user-agent
username: body.body.username
password: body.body.password
method: method":\s"(.*)",
url: https://test.mmt.dev/echo
method: post
format: json
body:
username: i:user
password: i:pass
```
#Multimeter #MMT #APITesting #TestAutomation #SoftwareTesting #Postman #Bruno #RobotFramework #RESTAPI #DeveloperTools #regex