>split !! 
Author Message
 >split !!

Quote:

> What I am looking for, is something like in lex:

> [^\\]/:    {split();}

> Where the split will only be done if the perceading
> character is not a \.

> Any ideas?

Try:
$x='a:b:c\:d:e";     # Or any other way!

             # ^^ or \\\: depending on if you want c\:d or c:d

Also, instead of substituting \: (as in your posting
you may substitute \377 and save a step).

Hope this helps.

Mandeep.

--
__________________________________________________________________
"I'm very brave generally," he went on in a low voice:
"only to-day I happen to have a headache."
                                      -- Lewis Carroll



Fri, 17 Feb 1995 09:31:31 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. >>>>>EXPERIENCED CGI PROGRAMMER NEEDED FOR PROJECT

2. my $short = (split /\//, $Server->File())[$#]

3. join <--> split with delimiter in variable

4. <<<<<< HELP >>>>>>>>

5. Perl 1->2->3->4->5

6. WinNT->DBI->DBD::ODBC->Jet->INSERT == SQL-S1000

7. How to use split function to split on a backslash

8. split inside split - can it be done ?

9. PERLFUNC: split - split up a string using a regexp delimiter

10. Help with split please - or maybe split isn't correct

11. html source ->>> text-file

 

 
Powered by phpBB® Forum Software