so I have this regex:
(?<![a-zA-Z])(0)(?![a-zA-Z])
it caches "0"s that don't have a letter before AND no letter after
I want to catch "0"s that either don't have a letter before OR don't have a letter after.
so I have this regex:
(?<![a-zA-Z])(0)(?![a-zA-Z])
it caches "0"s that don't have a letter before AND no letter after
I want to catch "0"s that either don't have a letter before OR don't have a letter after.
Copyright © 2021 Jogjafile Inc.
You could use the OR operator
|:(?<!\w)0|0(?!\w)regex101