0
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
4 ответов
+ 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
+ 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... 😉
+ 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.
+ 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.