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
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
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-
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)