![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
A sequence of characters that do not consist of tilde (~), followed by a tilde. The parentheses causes this part to be captured.
|
|
#3
|
|||
|
|||
|
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.
|
|||
| Google The UNIX and Linux Forums |