Texbox mask help

avatar
(anonymous user)

Hey,

Bit confused on how to create an IP mask I know it should look something like this:

“\b(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?).(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?).(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?).(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\b”

How do I convert it to the model you use here or is there a neater way?

Thanks

All Comments (4)

avatar
How do I convert it to the model you use here or is there a neater way?

Where is ‘here?’

avatar
avatar

Not at the moment and honestly, the mask text box is broken right now. I’ve tried to fix it a couple of times but there is some weird state management issues which cause focus to break when typing in it.

I’ll likely be implementing a new masked text box control to work around it.

Adam Driscoll
PowerShell Expert and Developer at Devolutions

avatar

Since it’s been a few years, has masking text been updated, I’m looking to do it to hide my bitlocker keys I’m throwing up on a dashboard table. I would like to use a ping to unmask them, if possible.