What is the best way to learn regular expressions in python?? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula gr√°tis
+ 16

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

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

9th Apr 2018, 6:38 AM
Kapil - avatar
18 Respostas
+ 21
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.
9th Apr 2018, 7:28 PM
David Carroll
David Carroll - avatar
+ 14
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 ...
9th Apr 2018, 8:26 AM
Cépagrave - avatar
+ 12
There also are these interactive tutorials with progressive exercises : https://regexone.com https://regexcrossword.com
10th Apr 2018, 10:40 AM
Cépagrave - avatar
+ 10
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
11th Apr 2018, 6:47 AM
Bjarte Mehus Sunde
Bjarte Mehus Sunde - avatar
+ 8
I think it's important to realize that regular expressions are the same in all languages.
13th Apr 2018, 10:12 PM
Lisa F
Lisa F - avatar
+ 7
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
15th Apr 2018, 9:28 PM
David Carroll
David Carroll - avatar
+ 6
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.
13th Apr 2018, 10:52 PM
David Carroll
David Carroll - avatar
+ 5
i am watching also tutorials on youtube for better understanding
9th Apr 2018, 7:43 PM
ALTernative - avatar
+ 5
@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
10th Apr 2018, 6:32 AM
+ 4
Ray try this maybe it helps you https://youtu.be/K8L6KVGG-7o
10th Apr 2018, 9:08 AM
ALTernative - avatar
+ 4
I suggest that you should always try your self on any assessment given to you on solo learn according to the example given
15th Apr 2018, 11:16 AM
Happiness Abiola Oyetayo
Happiness Abiola Oyetayo - avatar
+ 2
–ü—Ä–ĺ—Ā—ā–ĺ –Ņ–ĺ–ļ—É–Ņ–į–Ķ—ą—Ć –ļ–Ĺ–ł–≥–ł –Ņ–ĺ python –ł —á–ł—ā–į–Ķ—ą—Ć,–Ņ—Ä–į–ļ—ā–ł–ļ—É–Ķ—ą—Ć—Ā—Ź
9th Apr 2018, 12:17 PM
–†—É—Ā–Ľ–į–Ĺ - avatar
+ 2
@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
15th Apr 2018, 3:24 PM
_c0d£ Bit£_
_c0d£ Bit£_ - avatar
+ 2
You can go to the apps learn shelf. And learn Python
19th Apr 2018, 8:56 AM
TeaserYT - avatar
+ 2
Learn them on the Python3, then practice
19th Apr 2018, 12:53 PM
William Parker
William Parker - avatar
+ 2
Here is a very helpful video: https://www.youtube.com/watch?v=K8L6KVGG-7o
16th Jul 2020, 4:01 AM
DonLarry - avatar
Google for some regex problem, Code by yourself
8th Aug 2020, 8:28 AM
Philip Purwoko
Philip Purwoko - avatar