dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #49616
Re: d2:validatePattern
Simon,
The d2:validatePattern function is using RegEx expressions as parameter.
For a general introduction/tutorial to regex, see for instance
http://www.vogella.com/tutorials/JavaRegularExpressions/article.html
For a technical overview, see
https://docs.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html
You can use e.g. https://regex101.com to test your regex string. You put
the regex expression into the field on top, the text string you are testing
below it, and on the right side you see the result.
Hope this helps
Regards
Calle
On 4 July 2017 at 10:40, simon mugisa <nomisrmugisa@xxxxxxxxx> wrote:
> Dear Developers,
>
> Can someone help me with a guide on how to use the
> dhis2 d2:validatePattern function i am currently using 2.26 war file. Any
> help will be greatly welcomed.
>
> kind regards,
>
> *Simon Robert Kununka*
> *DHIS2 implement, Analyst and Consultant*
>
> Uganda-Kampala
> Direct: + <%2B1-703-667-3954>256-777-108-323
> E-mail: nomisrmugisa@xxxxxxxxx
>
>
> "Don't wish it was easier, wish you were better. Don't wish for less
> problems, wish for more skills. Don't wish for less change , wish for more
> wisdom."
>
> *This message and its attachments are confidential and solely for the
> intended recipients. If received in error, please delete them and notify
> the sender via reply e-mail immediately.*
>
>
>
>
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to : dhis2-devs@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help : https://help.launchpad.net/ListHelp
>
>
--
*******************************************
Calle Hedberg
46D Alma Road, 7700 Rosebank, SOUTH AFRICA
Tel/fax (home): +27-21-685-6472
Cell: +27-82-853-5352
Iridium SatPhone: +8816-315-19119
Email: calle.hedberg@xxxxxxxxx
Skype: calle_hedberg
*******************************************
References