in reply to Regex Question
s/([a-z])(\s)([a-z])/$1$3/ig
will remove any whitespace as long as it is between letters. Then, let's fill the variables:
m/([a-z]+)\s(\d),?\s?([a-z]+)\s(\d)/ig
(Note the placement of the brackets.) This should put stuff into your variables in the way you want it.
--cs
There are nights when the wolves are silent and only the moon howls. - George Carlin
|
|---|