I'm currently attempting to write some relatively simple(?) regex which captures a group of numbers which are then followed by specific characters.
https://regexr.com/4jp9h is a good example, I actually thought it was working but the 4 garlic cloves example chucked a spanner in the works. I've played with not matching whitespace / the spaces but haven't had much luck at all.
All of the other matches are fine, eg: 900g, 900kg, so on and so forth. But I can't for the life of me figure out how to stop the 4 garlic cloves example from matching.
Anyone got any ideas? :)
d900gor900gdalso ? can you list out what will be desired result for such cases ?