I recently bough an HP Photosmart D7360, having read good reviews about it. It seems OK in allrespects except one. When printing on photopaper (specifically HP 4x6 inch tabbed paper) the print preview seems to be inaccurate, by which I mean the actual photo printed has about 2mm cropped off...
I actually want to return the string, so in this case ! re.search ... wouldn't help me (well that's not entirely true - I might include a check-box on the GUI front end so the user can specify whether to iclude or exclude the expression. Nevertheless, it would be nice to know a general solution).
In Python, how can one negate an overall regular expression? For example, the regex ...
import re
string='This is a test'
string2='Test too BC '
re.search('[ ][A-Z][A-Z][ ]',string)
<doesn't match>
re.search('[ ][A-Z][A-Z][ ]',string2)
<DOES match>
... but what if I want to match only strings...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.