[Solved] What would be the regular expression to match the specific pattern string. i.e : 999x


Give this a shot:

(\b999\d),

Your matches will be saved to the capture group. If you only want 999x, and not 999xx, this is going to work because of the , at the end. Test it out here -> https://regex101.com/r/yU2oN0/2

solved What would be the regular expression to match the specific pattern string. i.e : 999x