Community Page
- codingexperiments.com/ Jump to website »
-
Subscribe -
Community
-
Top Commenters
-
Popular Threads
-
Recent Comments
- Great interview.
- Thanks for this interesting explanation about Linux desktop capabilities. I have been suffering the X.org/Intel drivers regressions (specially on my eee 901) and also the pulseaudio bugs. I hope...
- I personally use Ubuntu linux as my choice at home, however my wife does not want to leave windows. While installing the same network printer on both systems, I noticed the windows version took...
- You provide excellent advice for a newly-minted Linux enthusiast looking to make some quick money. However, I am unsure whether most non-technical Windows users switching to Linux would actually...
- Thank you. I have fixed the error.
CodingExperiments.Com
CodingExperiments.com is a site where I can (obviously) experiment with various demonstrations of code.Sir, Please Step Away from the Regex. When to Use Regular Expressions in Code.
Started by Rishabh Mishra (possible248) · 1 year ago
Introduction
Regular expressions are several things. They are:
powerful.
useful.
sometimes overkill.
A difficult part for beginning programmers is when to use a regular expression in code. Sometimes, whipping up something with string functions is a better idea. You’re a smart coder if you can tell the difference from ... Continue reading »
Regular expressions are several things. They are:
powerful.
useful.
sometimes overkill.
A difficult part for beginning programmers is when to use a regular expression in code. Sometimes, whipping up something with string functions is a better idea. You’re a smart coder if you can tell the difference from ... Continue reading »
5 months ago
/^3.+/ does not simply mean 'start with 3'. It means 'start with 3 and one or more additional characters'.
/^3.*/ is probably what you wanted.
+ means 'match the preceding element one or more times' whereas * means 'match the preceding element zero or more times'
5 months ago
My apologies for the obvious sloppiness in writing the post. Much thanks given to you. I have corrected the post to reflect this.