Thanks for all 3 suggestions. The string replace is fine for such a simple 
case, which I had decided – and as Greg K also points out. But regex.escape is 
what I was after (for use elsewhere,  simplifying more complex string handling).

 

  _____  

Ian Thomas
Victoria Park, Western Australia

 

From: [email protected] [mailto:[email protected]] On 
Behalf Of [email protected]
Sent: Thursday, June 06, 2013 8:53 PM
To: ozDotNet
Subject: RE: regex - how to remove questionmark

 

place it in a character class [?]

 

--------- Original Message --------- 

Subject: regex - how to remove questionmark
From: "Ian Thomas" <[email protected]>
Date: 6/6/13 6:35 am
To: [email protected]

I am confusing myself in trying to use regular expression to remove a 
questionmark, which may be anywhere in a string. Can someone give me the right 
way?

 

  _____  

Ian Thomas
Victoria Park, Western Australia

Reply via email to