![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| extract numbers from a word | systemali | Shell Programming and Scripting | 14 | 03-30-2009 03:47 AM |
| searching and storing unknown number of lines based on the string with a condition | swamymns | Shell Programming and Scripting | 7 | 05-13-2008 01:02 AM |
| extract same word from two files | tjmannonline | AIX | 4 | 04-06-2008 12:42 PM |
| extract last word on line to new file | michieka | UNIX for Dummies Questions & Answers | 10 | 05-07-2002 11:26 AM |
| Selecting unknown string. | Cameron | UNIX for Dummies Questions & Answers | 2 | 12-18-2001 03:48 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
perl newbie: how to extract an unknown word from a string
hi,
im quite new to perl regexp. i have a problem where i want to extract a word from a given string. but the word is unknown, only fact is that it appears as the second word in the string. Eg. input string(s) : char var1 = 'A'; int var2 = 10; char *ptr; and what i want to do is to get the variable name (var1, var2, ptr ..etc.) from an above like string. can we use something like (w+) to match a whole word. thankx in advance. wolwy. |
|
||||
|
thankx very much guys,
it worked, the split function was quite useful. |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|