I'm working on a regex to match By now, I have < Code> [az] []? [Az | Az | \. | ] [A-Z | A-z | \. | | 0-9] + F. Supp
or F.3d
but not june
or foobar
. It's almost there, but it still matches June
. Me a .
(period character) is required, but I want to allow it to be anywhere in the match.
I think I need to use a positive form, but my effort does not work: (? = [.]) [AZ] []? [AZ | Az | \. | ] [A-Z | A-z | \. | | 0-9] +
.
I am using Python.
If you want in
operand:
if '.' With the term
and with regex you can use a positive look-around to make sure that you have dot .
in your string:
([\ w] +)? (? = \.) ([\ W] +)?
No comments:
Post a Comment