Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I was looking for a regular expression because I have to replace the last comma with the word "and".

 

I wanted to use a regular expression because I can find and replace with one line of code instead of several.

 

Thanks for your help. :)

Posted
How does your's work Ingis? I can't say I follow it...

 

, the comma in question

(?! look ahead negative i.e. make sure this doesn't follow

(?: don't save this

.*, any number of charcters follwed by a comma

))

"Who is John Galt?"

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.

×
×
  • Create New...