You could go for
Z[^;]*?od[^;]*?;
# require a Z
# anything not a ; lazily
# od
# anything not a ; lazily again
# followed by a ;
See a demo on regex101.com or split on the ;
and analyze the parts later separately.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments