RATPFINK 3 Posted January 14, 2013 Report Share Posted January 14, 2013 trying to figure out the regex to find names in this format: MENJIVAR, LEODAN There is also the possibility of a middle initial following the first name. Doesn't seem to difficult. Not sure where I'm going wrong. Thanks. Quote Link to post Share on other sites
VaultBoss 310 Posted January 14, 2013 Report Share Posted January 14, 2013 (^[a-zA-Z]*(,\s)[a-zA-Z]*) ^^^ that is with compulsory comma between names, with no middle initial and with both lower/upper case letters, no digits or other signs allowed. To add a middle initial, I would need to see the format first... You can play with REGEX online (free) here and build your own version easily: http://rubular.com/ Good luck! 2 Quote Link to post Share on other sites
RATPFINK 3 Posted January 14, 2013 Author Report Share Posted January 14, 2013 (^[a-zA-Z]*(,\s)[a-zA-Z]*) ^^^ that is with compulsory comma between names, with no middle initial and with both lower/upper case letters, no digits or other signs allowed. To add a middle initial, I would need to see the format first... You can play with REGEX online (free) here and build your own version easily: http://rubular.com/ Good luck!Thank you very much. Quote Link to post Share on other sites
RATPFINK 3 Posted January 15, 2013 Author Report Share Posted January 15, 2013 I tweaked it for optional middle initial and apparently for title such as junior etc. which I just discovered. Thanks again Boss. Quote Link to post Share on other sites
VaultBoss 310 Posted January 15, 2013 Report Share Posted January 15, 2013 You're welcome! I'm glad I could help... If you like someone's contribution, you can always hit the ✔ LIKE THIS button on the bottom-right corner of the said post. Cheers! 1 Quote Link to post Share on other sites
RATPFINK 3 Posted January 15, 2013 Author Report Share Posted January 15, 2013 You're welcome! I'm glad I could help... If you like someone's contribution, you can always hit the ✔ LIKE THIS button on the bottom-right corner of the said post. Cheers!Yes I can. Here I was looking for the old +1 and missed the like all together. Quote Link to post Share on other sites
AutomationNinja 194 Posted January 15, 2013 Report Share Posted January 15, 2013 Thats why the "If you liked my post/contribution, hit the ✔ LIKE THIS button ↑↑↑ above" is there. Been wanting to steal that idea for a while. Quote Link to post Share on other sites
a2mateit 395 Posted January 15, 2013 Report Share Posted January 15, 2013 Thats why the "If you liked my post/contribution, hit the ✔ LIKE THIS button ↑↑↑ above" is there. Been wanting to steal that idea for a while. I disabled all signatures, so I guess I never seen this... Just remember that nobody likes a thanks whore though Quote Link to post Share on other sites
VaultBoss 310 Posted January 15, 2013 Report Share Posted January 15, 2013 I disabled all signatures, so I guess I never seen this... Just remember that nobody likes a thanks whore though I am never telling that to older members, just teaching newbies Forum customary politeness, that's all... PLUS, I never said that even to newbies, unless they thanked already, written in the thread... so I honestly don't think I am worth naming names, although I see where that's coming from. Quote Link to post Share on other sites
a2mateit 395 Posted January 15, 2013 Report Share Posted January 15, 2013 Nah, It's all good boss, just having a little bit of fun with you! Quote Link to post Share on other sites
VaultBoss 310 Posted January 15, 2013 Report Share Posted January 15, 2013 Nah, It's all good boss, just having a little bit of fun with you! Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.