Why was Regular expressions never taught in Java | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson

Why was Regular expressions never taught in Java

I think the community should do a course on regular expressions in Java but the lesson factory is not available

7th Nov 2020, 9:36 AM
George S Mulbah II
George S Mulbah II - avatar
4 Answers
+ 6
George S Mulbah You can also search in the code playground for regex related tutorials. https://code.sololearn.com/WgjV487TEMRS/?ref=app https://code.sololearn.com/W0pNLQ8bef6J/?ref=app
7th Nov 2020, 12:44 PM
Mouli - avatar
+ 6
George S Mulbah RegEx is, for the most part, language agnostic. Yes... there are differences in what different languages do support. But, for the most part, the RegEx patterns that are supported, are supported consistently regardless of the language. For example, some languages support named capture groups while others don't. But those that do support these do so the same way. The only deviation that immediately comes to mind is with Python re.match("foo") which will start at the beginning while all other languages will look for the first position of the match. I hate that about Python. But I digress... 😉
9th Nov 2020, 4:37 AM
David Carroll
David Carroll - avatar
+ 4
There is regex in general, which can be used in Java and any other language which support regex: https://www.sololearn.com/learn/9704/?ref=app Just learn the syntax for language specific.
7th Nov 2020, 9:45 AM
你知道規則,我也是 - avatar
+ 4
I would say regex is a shorthand way of doing things you can still achieve similar results using ordinary coding which is what sololearn provides but overall it will be a longer code.
7th Nov 2020, 11:09 AM
D_Stark - avatar