How to create a validation rule for eg: "P-123456" ie my field must be in this format

Hi Team,

How do i validate in this format for a text field and it must start with

P- and then integers of a certain length .

Thanks in advance

@SyedaZehraZ16928215 :

You can use 2 functions:

  1. StartsWith

  2. Length & IsInteger

If the entered value of property doesnt match either of these- throw a validation

@RSENTHILKUMAR :Thank you