Split String

This is a discussion on Split String within the C Programming forums, part of the General Programming Boards category; Hi, Is there an easy way in C to split a string based on a regex. I want to split ...

  1. #1
    Registered User
    Join Date
    Oct 2008
    Posts
    1

    Split String

    Hi,

    Is there an easy way in C to split a string based on a regex. I want to split on the regex [^a-zA-Z0-9], i.e. anything but alphanumeric chars.

  2. #2
    Woof, woof! zacs7's Avatar
    Join Date
    Mar 2007
    Location
    Australia
    Posts
    3,459
    Yes, but no standard way (unless you write it yourself). Look into the many available regex libraries (google would be a good start...).

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. char Handling, probably typical newbie stuff
    By Neolyth in forum C Programming
    Replies: 16
    Last Post: 06-21-2009, 05:05 AM
  2. split string function
    By paxmanchris in forum C Programming
    Replies: 6
    Last Post: 04-23-2007, 10:56 AM
  3. Custom String class gives problem with another prog.
    By I BLcK I in forum C++ Programming
    Replies: 1
    Last Post: 12-18-2006, 03:40 AM
  4. Classes inheretance problem...
    By NANO in forum C++ Programming
    Replies: 12
    Last Post: 12-09-2002, 03:23 PM
  5. creating class, and linking files
    By JCK in forum C++ Programming
    Replies: 12
    Last Post: 12-08-2002, 02:45 PM

Tags for this Thread


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21