Ph´nglui mglw´nafh Cthulhu R´lyeh wgah´nagl fhtagn.
You really don't need to parse and "understand" the whole structure of the xml to change a single value. Don't look it as xml, it's just a single number surrounded by meaningless text.
Ph´nglui mglw´nafh Cthulhu R´lyeh wgah´nagl fhtagn.
You really don't need to parse and "understand" the whole structure of the xml to change a single value. Don't look it as xml, it's just a single number surrounded by meaningless text.
At first, I wanted to make both functions: the xml way, and the regexp way and compare both in order to take the best.
However, I first created the xml way and then got tired.
If you really want the regexp way, I can make one. Do you really want the ability to use regexp instead of xml parsing?
I would've done this to process the install.rdf file (in perl), i guess it's easy to port to python
Code:#!/usr/bin/perl while (<>) { if ($_ =~ /maxVersion/) { $_ =~ s/\d+(\.\d+)*(\.\*)?/7/; print; next; } print; }
Yeah, that's actually a few more lines, but here you go. Just use the "--wolf1e" switch.
Hope you like it lol.
haha nice switch name :3