Your regex will run much faster if you write it instead like so:
except that it's unnecessarily difficult. Really, just use Ovid's solution or chip's solution.if (/([^:]*):([^:]*):([^:]*):([^:]*):([^:]*)/) {
jynx
In reply to Re: Re: Parsing
by jynx
in thread Splitting and formatting a line
by keraam
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |