Common Regular Expressions Made Simple
github.com
Common Regular Expressions Made Simple
1–10 of 25 posts
Re: Common Regular Expressions Made Simple
#2generally, very good.
Re: Common Regular Expressions Made Simple
#3I'm gonna be That Guy and say that the e-mail regex isn't upto scratch and probably should not be included. generally, very good.
Re: Common Regular Expressions Made Simple
#4I'm gonna be That Guy and say that the e-mail regex isn't upto scratch and probably should not be included. generally, very good.
I'm gonna be That Other Guy and say that the date and phone regex are respectively english-language and US specific. So it's common for a narrow definition of common.
Re: Common Regular Expressions Made Simple
#5I'm gonna be That Guy and say that the e-mail regex isn't upto scratch and probably should not be included. generally, very good.
I'm gonna be That Other Guy and say that the date and phone regex are respectively english-language and US specific. So it's common for a narrow definition of common.
> um 6:00 am 05.12. (at 6:00 on 12/05/..)
If i read it correctly, the time regex would extract "6:00 am" as time, but the "am" is wrong (German uses 24h format).
Re: Common Regular Expressions Made Simple
#6Earlier quoted context omitted.
I'm gonna be That Other Guy and say that the date and phone regex are respectively english-language and US specific. So it's common for a narrow definition of common.
The time regex is, too. In German you can expect to encounter the text fragment > um 6:00 am 05.12. (at 6:00 on 12/05/..) If i read it correctly, the time regex would extract "6:00 am" as time, but the "am" is wrong (German uses 24h format).
Simple regular expressions can be good enough if you're aware of the domain restriction though.
Re: Common Regular Expressions Made Simple
#7I'm gonna be That Guy and say that the e-mail regex isn't upto scratch and probably should not be included. generally, very good.
Re: Common Regular Expressions Made Simple
#8Earlier quoted context omitted.
I'm gonna be That Other Guy and say that the date and phone regex are respectively english-language and US specific. So it's common for a narrow definition of common.
The time regex is, too. In German you can expect to encounter the text fragment > um 6:00 am 05.12. (at 6:00 on 12/05/..) If i read it correctly, the time regex would extract "6:00 am" as time, but the "am" is wrong (German uses 24h format).
Re: Common Regular Expressions Made Simple
#9Earlier quoted context omitted.
I'm gonna be That Other Guy and say that the date and phone regex are respectively english-language and US specific. So it's common for a narrow definition of common.
The time regex is, too. In German you can expect to encounter the text fragment > um 6:00 am 05.12. (at 6:00 on 12/05/..) If i read it correctly, the time regex would extract "6:00 am" as time, but the "am" is wrong (German uses 24h format).
Re: Common Regular Expressions Made Simple
#10I'm sure there are better alternatives than just regexp to validate numbers, emails ,etc ...