![]() |
|
|
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 |
| Split Command in Perl | rochitsharma | UNIX for Advanced & Expert Users | 9 | 03-09-2008 03:56 AM |
| Help Needed : Split one big file to multiple files | monicasgupta | Shell Programming and Scripting | 5 | 03-03-2008 07:09 PM |
| Split a file with no pattern -- Split, Csplit, Awk | madhunk | UNIX for Dummies Questions & Answers | 10 | 12-17-2007 12:57 PM |
| Split data into multiple lines | kingofprussia | UNIX for Dummies Questions & Answers | 5 | 07-31-2007 02:48 PM |
| perl split function | new2ss | Shell Programming and Scripting | 5 | 06-08-2006 11:17 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
multiple pattern split in perl
Hello all
i have complex string that i will like to split to or to break to parts my string is : "foo1+foo22-blah*blah(var)+fooA(var)" now i need to break this string so that every part of the string will be element in array it will b @stack[0] = "foo1" @stack[1] = "+" @stack[2] = "foo22" @stack[3] = "-" @stack[4] = "blah" @stack[5] = "*" @stack[6] = "blah(var)" @stack[7] = "+" @stack[8] = "fooA(var)" now the problem as you see is the different separators , if i had only one type so i could split this string by this one type pattern and build that array but here i have multiple type (+|-|*) what will be the best why to build this array in this case? |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|