Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Validator contains

    I have this validator:
    Code:
    <field name="f_foto_filename" type="text">
    			<validators>
    				<validator type="contains" substring=".jpg" />
    			</validators>
    		</field>
    But this doesn't work when the filename is foto.JPG. How to make this ignore case?

    #2
    The simplest thing is to switch to the regexp validator. If you wanted any variation of "jpg" to be legal, including things like "jPg", use character sets like [jJ][pP][gG].

    Comment

    Working...
    X