Regular Expression for single quote

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • freeflytim

    Regular Expression for single quote

    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

  • Jon Shemitz

    #2
    Re: Regular Expression for single quote

    freeflytim wrote:
    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.
    (?<!')'(?!')


    --

    ..NET 2.0 for Delphi Programmers www.midnightbeach.com/.net
    Delphi skills make .NET easy to learn Great reviews & good sales.

    Comment

    • freeflytim

      #3
      Re: Regular Expression for single quote

      I am eternally grateful. Thanks.

      Comment

      Working...