Hi,
>> Brent Buckalew <[EMAIL PROTECTED]> writes:
> other. What happens is that it reads in the numbers until there is a
> negative number. When it reaches a negative number, it places the
> remaining text in that variable.
I used your regular expression but I can't reproduce the problem.
I do have a couple of suggestions, though.
/(Nitrogen) *([0-9.\-]*) *([0-9.\-]*) *([0-9.\-]*) *([0-9.\-]*) *([0-9.\-]*)/
You don't need to escape a '-' at the start or the end of a character
class. You can write [0-9.\-] as [0-9.-] or [-0-9.] or [-\d.], too.
' *' will match any ammount of spaces, including none. You might want
to use ' +' instead, which matches one or more ' '. Instead of ' ',
you might want to use \s, which matches other whitespace characters,
too. A similar comment applies to [0-9.\-]*
--
Marcelo