View Single Post
  #1 (permalink)  
Old December 11th, 2006, 06:45 PM
hugh@kmcnetwork.com hugh@kmcnetwork.com is offline
Authorized User
 
Join Date: Jul 2003
Location: , , .
Posts: 98
Thanks: 0
Thanked 0 Times in 0 Posts
Default Regex with Special Characters

Hello Everyone and thanks for your help in advance. I am working on an application that needs to be able to parse the following strings out of a large block of text:

NM1*IL*1*LASTNAME*FIRSTNAME*X***MI*123456789~

The strings are using the * character for field delimiters (brilliant) and each stringn ends with the ~ character. The "NM1*IL*1*" is the same for all strings and the "MI" in the middle is also constant. Beyond that, everything is alpha or numeric. I'm really having a rough time with this because of all of the special characters. Any help on this topic would be greatly appreciated. Thanks.


Reply With Quote