Regular Expression help - PHP
Discussion
I can't seem to find anything like this in any documentation.
I have some data, like
020 $a0750939486 (hbk.) :$c£19.99 : CIP entry (Feb.)
I'm using preg_split in PHP to split that data at each of the $ symbols. The problem is, if $ currency is used in the data they use $$. How do I use a regular expression to say that I only want it to split when there is a single $, rather than two?
e.g. the above example might instead be
020 $a0750939486 (hbk.) :$c$$19.99 : CIP entry (Feb.)
I have some data, like
020 $a0750939486 (hbk.) :$c£19.99 : CIP entry (Feb.)
I'm using preg_split in PHP to split that data at each of the $ symbols. The problem is, if $ currency is used in the data they use $$. How do I use a regular expression to say that I only want it to split when there is a single $, rather than two?
e.g. the above example might instead be
020 $a0750939486 (hbk.) :$c$$19.99 : CIP entry (Feb.)
Gassing Station | Computers, Gadgets & Stuff | Top of Page | What's New | My Stuff


