ugakebet 4 Posted February 12, 2012 Report Share Posted February 12, 2012 i have this Name::,cfield_6,First and/or last name. and i want to get First and/or last name. how would i do that? also i was thinking of using the positive lookbehind for the ',' such that i could find the first character after the ',' and match till the end of the string, so i would use (?<=\,).* but this matches from cfield_6,Firstblahblah, how do i modify that code to match the second instance of the ',' i.e. the ',' before 'First' Quote Link to post Share on other sites
ugakebet 4 Posted February 12, 2012 Author Report Share Posted February 12, 2012 bump Quote Link to post Share on other sites
k1lv9h 76 Posted February 17, 2012 Report Share Posted February 17, 2012 Try this regex code: .*\,.*\,(.*) When I used this test line:Name::,cfield_6,First and/or last name. I the match was on:First and/or last name. Regards,Kevin 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.