J
John
I am trying to write a tool to help me synchronize newer redhat rpms
so i can burn updated cds instead of doing it manually.
The current pattern I use matches the majority from which i dump it
into a hashtable. The lhs would be the filename and the rhs would be
the version number.
/^([a-zA-Z\-\_]+)([0-9a-zA-Z\.\-]+)\.[a-z0-9|a-z]+\.rpm/ )
Although this matches the filename patterns for the rpms, there is one
case I have not been able to figure out
ko2-fonts-0.3.9b-16.9 for example.
The issue is that the pattern splits up ko2-fonts to ko
2-fonts-0.3.9b-16.9
Is there a solution for parsing rpm filenames somewhere or would
someone better at regexs help me with this?
thanks
Greg
so i can burn updated cds instead of doing it manually.
The current pattern I use matches the majority from which i dump it
into a hashtable. The lhs would be the filename and the rhs would be
the version number.
/^([a-zA-Z\-\_]+)([0-9a-zA-Z\.\-]+)\.[a-z0-9|a-z]+\.rpm/ )
Although this matches the filename patterns for the rpms, there is one
case I have not been able to figure out
ko2-fonts-0.3.9b-16.9 for example.
The issue is that the pattern splits up ko2-fonts to ko
2-fonts-0.3.9b-16.9
Is there a solution for parsing rpm filenames somewhere or would
someone better at regexs help me with this?
thanks
Greg