Regular expression for punctuation

Discussion in 'ASP .Net' started by Chris Leffer, Jul 9, 2003.

  1. Chris Leffer

    Chris Leffer Guest

    Hi.

    I am trying to define a regular expression that accepts letters and
    punctuation characters. I read something about Posix where I could use
    [:punct:] in order to accept all the punctuation characters, but I could
    not find how to add this to my expression. My expression is a simple
    [A-Za-z]. How can I make it accept all the punctuation characters also?

    Regards,

    Chris Leffer


    *** Sent via Developersdex http://www.developersdex.com ***
    Don't just participate in USENET...get rewarded for it!
     
    Chris Leffer, Jul 9, 2003
    #1
    1. Advertisements

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. VSK
    Replies:
    2
    Views:
    2,657
  2. DBLWizard
    Replies:
    10
    Views:
    937
    Brock Allen
    Apr 2, 2005
  3. dew

    Stripping out punctuation marks

    dew, Feb 6, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    500
    Nathan Sokalski
    Feb 7, 2006
  4. dfhLASST

    Remove punctuation from String?

    dfhLASST, Nov 11, 2004, in forum: Java
    Replies:
    4
    Views:
    57,628
    Woebegone
    Nov 11, 2004
  5. Glenn Meter
    Replies:
    4
    Views:
    1,852
    Murray
    Nov 20, 2004
  6. =?iso-8859-1?B?bW9vcJk=?=

    Matching abitrary expression in a regular expression

    =?iso-8859-1?B?bW9vcJk=?=, Dec 1, 2005, in forum: Java
    Replies:
    8
    Views:
    1,076
    Alan Moore
    Dec 2, 2005
  7. Karl Groves
    Replies:
    8
    Views:
    546
  8. GIMME
    Replies:
    3
    Views:
    12,471
    vforvikash
    Dec 29, 2008
Loading...