[ic] /etc/profiles.order documentation/help

Aaron Kemp interchange-users@icdevgroup.org
Mon Aug 5 11:55:01 2002


Hi,

I'm having some trouble with /etc/profiles.order.

I want to check a field for one of two conditions:  The field must be
either blank or match the regex /^45[0-9]{8}$/.

I couldn't find any good documentation on the file profiles.order, but I
searched the mailing list and found some examples from various people. 
I pieced this together in the hopes that it would work: (Note: I was
not, at this point, worrying about whether or not it was blank)

[if value po_number =~ /^45[0-9]{8}$/]
  po_good=1
[/if]
...
po_good=required You must enter a valid PO number

That didn't work, so I tried this:

[if value po_number =~ /^45[0-9]{8}$/]
  &set = po_good 1
[/if]

po_good=required You must enter a valid PO number

That didn't work either.  I tried a bunch of variations on these two
schemes, to no avail.  I can either make it always fail, or always
succeed and I got a message about a format check not being found once
too : )

I'm stuck.  Could someone either tell me what I'm doing wrong, or point
me in the direction of some documentation on things like "required" and
"set" and the whole profiles.order concept?

Thanks very much in advance,

Aaron Kemp