The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
Google UNIX.COM


High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Need a regular expression tony3101 Shell Programming and Scripting 4 06-05-2008 12:13 AM
regular expression and awk nickg UNIX for Dummies Questions & Answers 2 08-16-2007 02:23 PM
regular expression...help!! andy2000 UNIX for Dummies Questions & Answers 6 07-18-2007 02:10 PM
help in regular expression Rakesh Ranjan High Level Programming 5 10-25-2006 10:00 AM
Regular Expression + Aritmetical Expression Z0mby Shell Programming and Scripting 2 05-21-2002 07:59 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 10-26-2007
Registered User
 

Join Date: Oct 2007
Posts: 2
What does the regular expression ['(^[^~]+~).*'] mean?

What does the regular expression ['(^[^~]+~).*'] mean while using it with regexec.When the string "RCHNUSNT35C~rs07/ASM-RS07" is used with the regular expression ['(^[^~]+~).*'] regexec gives an error. I know what regexec does,but i do not understand what this expression means wrt to this string...
any help would be appreciated
Reply With Quote
Forum Sponsor
  #2  
Old 10-26-2007
Moderator
 

Join Date: Sep 2002
Location: Hong Kong, China
Posts: 1,477
A sequence of characters that do not consist of tilde (~), followed by a tilde. The parentheses causes this part to be captured.
Reply With Quote
  #3  
Old 10-29-2007
Registered User
 

Join Date: Oct 2007
Posts: 2
so the string "RCHNUSNT35C~rs07/ASM-RS07" should match with the regular expression and return 0. But the return value is 1. Any pointers on how that is possible.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 12:25 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0