How to validate the JSON Key field value contains : Alphanumeric characters

Hi team,

Please help me with this query solve here is the attachment for reference

This can be done using a regex match.

var array = ["123", "ABC", "123ABC"]

// following regex match allows only Alphanumeric
// It doesn't allow 'only alpha' or 'only numbers'.
array.forEach(string => 
    pm.test(`${string} is alphanumeric`, () => {
        pm.expect(string).to.match(/((^[0-9]+[a-z]+)|(^[a-z]+[0-9]+))+[0-9a-z]+$/i);
    })
);

// following regex allows alphanumeric, only alpha, and only numbers.
array.forEach(string => 
    pm.test(`${string} is alphanumeric v2`, () => {
        pm.expect(string).to.match(/^([0-9]|[a-z])+([0-9a-z]+)$/i);
    })
);

Taken from here.

regex - To check if a string is alphanumeric in javascript - Stack Overflow

mdjones Thanks tried and get the response