I'd like to know whether or not there is a possible way to match NDC codes in different formats by using openFDA API like Recall Enforcement Reports. For example, matching 0187-0798-30 with 0187-079-830 but without the hyphen, it is the same number.

1 Answer 1


Using a simple regular expression, you can convert the NDC number to the expected format and then query the API.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.