Re: What is best way for learn programming?

2024-07-31 Thread info
Best way like Olivier said is to do an actual real project or script that you (or someone else) will be using. Exercises in books never cover real life challenges fully or all the different aspects and interactions that you'll face. Contributing to other projects is also another one... Erick

Re: Regex for date

2018-08-25 Thread Home Linux Info
Hello, Maybe not the most beautiful regex out there, hey I'm a noob, but it does the job right: ([A-Z][a-z]{2}\s)|([0-9]{2}\s[0-2][0-9](:[0-5][0-9]){2}\s[0-9]{4}) You can start from here and find a nicer form of this regex. On 8/25/18 2:06 PM, Asad wrote: Hi All ,           I need  a regex

Re: regex to get the rpm name version

2018-08-09 Thread Home Linux Info
Hello, You can begin with "*[a-zA-Z_+-]{3,}[0-9]*" to get the package name, it needs a little more work for right now it gets the last dash and first digit of package version. Then you can try "*([^a-zA-Z_+-]{3,})(.\d{1,})*". The first regex gives the following result: /binutils-2// //compat-

xml::simple

2005-07-25 Thread info
Hello, I've just made a simple script using xml::simple, and I am stuck on something: I have an xml file that looks like this: Somewhere 18 a Somewhere else 3 a bc So my question would be, how can I handle dynamic fields (ex. the above code)