I have a string like
$str = '<chap&&<book||<table&&<list';I want to split that with && and || but i dont want to include those && and || in the array.
If i use the following code, it splits correctly but it stores the && and || in the array.
@arr = split /(?=(&&|\|\|))/, $str;How to do this?
Regards,
Anniyan
(CREATED in HELL by DEVIL to s|EVILS|GOODS|g in WORLD)
In reply to split with separators but dont include in the array by anniyan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |