Results 1 to 2 of 2
  1. #1
    b_jones10634 is offline Member
    Join Date
    Sep 2010
    Posts
    1
    Rep Power
    0

    Default Need help with regex pattern

    Community,

    I need some help developing a regex pattern that will do the following remove all illegal characters from a file name.

    These characters include:
    • #
    • <
    • >
    • %
    • {
    • }
    • |
    • \
    • ^
    • ~
    • [
    • ]
    • `
    • ;
    • /
    • ?
    • :
    • @
    • =
    • &
    • $


    All other alphanumeric and symbol characters are valid and should be left as is.

    Any help would be greatly appreciated, thanks in advance.

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,452
    Rep Power
    20

Similar Threads

  1. Regex for the pattern
    By mallikarjun_sg in forum Advanced Java
    Replies: 12
    Last Post: 05-06-2010, 01:16 PM
  2. Specific syntax? java.util.regex.Pattern$Node
    By lmhelp2 in forum New To Java
    Replies: 1
    Last Post: 04-09-2010, 12:32 PM
  3. How "Pattern.matches(regex, input)" function works?
    By kishan in forum Advanced Java
    Replies: 2
    Last Post: 04-26-2009, 01:46 AM
  4. Regex Pattern/Matcher - Print only one occurrence!
    By racha0601 in forum Advanced Java
    Replies: 3
    Last Post: 04-06-2009, 06:05 PM
  5. Regex pattern
    By ravian in forum New To Java
    Replies: 4
    Last Post: 12-11-2007, 11:20 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •