Jump to content
UBot Underground

Recommended Posts

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'

Link to post
Share on other sites

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

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...