regular expression validation

how to use regular expression with mask.
suppose i have below pattern
string pattern = @“ISBN\x20(?=.{13}$)\d{1,5}([- ])\d{1,7}\1\d{1,6}\1(\d|X)$”;

Could you provide some additional info. please?
Where are you planning to use this expression in a such way, that a mask become necessary?

Just an expression doesn’t have any logic about GUI.
A code that runs a regular expression should take care about raising a mask.

You can define a custom input formatting function
https://snippet.webix.com/3jnv8o12

Such formatting will be applied each time when a user enters a value and moves focus out of input. The above snippet is for common number formatting, in your case a more complicated custom code needs to be used.