What is the best way to learn regular expressions in python?? | Sololearn: Learn to code for FREE!


What is the best way to learn regular expressions in python??

I am new to python, i want to learn regx from basics..

4/9/2018 6:38:37 AM


18 Answers

New Answer


https://www.sololearn.com/learn/Python/2475/ https://www.regular-expressions.info/python.html


I also recommend getting familiar with tools like www.regex101.com to validate efficient patterns and running against a set of positive and negative tests.


You have some starting tools in the python lesson here on SL. I suggest you to learn those, and once you did, try to answer assignments where strings are involved in the assignments section. You'll sometimes need to google for new tools and the web forest is full of them : ) Practice and practice ...


There also are these interactive tutorials with progressive exercises : https://regexone.com https://regexcrossword.com


I made a regex quiz a while back if you want to check it out 😊 And also this password strength checker code use some regex. I also highly recommend this site https://regexr.com . I use it when making complicated regex patterns, it's a really good tool. https://code.sololearn.com/c70AOZqwgRg2/?ref=app https://code.sololearn.com/cGiP2gpu0Qn1/?ref=app


I think it's important to realize that regular expressions are the same in all languages.


Roy There are a few differences in feature support and in implementation. Check out the comparisons in both Part 1 and Part 2 of this link: https://en.m.wikipedia.org/wiki/Comparison_of_regular_expression_engines#Language_features


Lisa F For the most part, you are correct. There are some features of regex available in some languages that aren't available in others.


i am watching also tutorials on youtube for better understanding


@Al . Please which is the best tutorial video to watch on youtube because i 've tried many but i haven't find one that i click with yet


Ray try this maybe it helps you https://youtu.be/K8L6KVGG-7o


I suggest that you should always try your self on any assessment given to you on solo learn according to the example given


Просто покупаешь книги по python и читаешь,практикуешься


@lisa F thanks for the answer I just wanted to ask that question meaning a regular expression that works in JavaScript can also work in python


You can go to the apps learn shelf. And learn Python


Learn them on the Python3, then practice


Here is a very helpful video: https://www.youtube.com/watch?v=K8L6KVGG-7o


Google for some regex problem, Code by yourself