Can someone suggest a way to learn regex?
- by Nick Brooks
In my situation knowing Regex would be very useful but I can't seem to be able to learn it. I completely don't understand it and I find it quite strange.
To me Regex is just a set of jumbled up symbols which 'somehow' does the job. I looked at many tutorials and still haven't figured how to use it.
The other thing I find weird that whenever I search for a way to implement something with regex I find lots of different solutions. For example these are for 'matching text between the brackets'
1: \((.*?)\)
2: ((.+?))
That confuses me even more ...
Can someone suggest a good way of learning it? Personally I find it even more difficult than assembly language.
For now I'm avoiding Regex and using things such as "substr" to get the bits I need.