Regular Expression for single quote

  • Thread starter Thread starter freeflytim
  • Start date Start date
F

freeflytim

Could anyone possibly help with a regular expression to replace only
lone occurrences of a single quote with a double quote?

I don't want to touch instances of multiple quote characters
side-by-side, only quotes that are by themselves, i.e. surrounded by
alphanumeric characters or spaces.

Thanks in advance
 
freeflytim said:
Could anyone possibly help with a regular expression to replace only
lone occurrences of a single quote with a double quote?

I don't want to touch instances of multiple quote characters
side-by-side, only quotes that are by themselves, i.e. surrounded by
alphanumeric characters or spaces.

(?<!')'(?!')
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top