Validation Regex no spaces trailing, leading or inbetween

Khalnayak
Tera Guru

Hi all,

I have a Validation regex for a field within a catalogue item. 

It currently does not allow the characters [^"();:<>]+ which works fine.

But now I need to prevent spaces being entered at the beginning, middle or end, how can I do this?

Can I add some characters to the current regular expressions field?

find_real_file.png

 

Thanks in advance,

Usmaan.

1 ACCEPTED SOLUTION

Hi,

Above provided solution is also from Orlando.

To approach ServiceNow,

Create HI ticket.

https://hi.service-now.com/hisp

If it is ok for you can you share the PDI details on dhananjay.pawar1111@gmail.com I will check.

If possible share

Catalog item name and access details.

Thanks,

Dhananjay.

View solution in original post

27 REPLIES 27

tried client script, behaving same as variable validate regex

Hi,

This is something strange, You could approach to ServiceNow regarding this.

I replicated this on my PDI and same thing exactly. So I don't think it's my instance. Although both are on Orlando version.

How would I approach ServiceNow? what are the channels?

Hi,

Above provided solution is also from Orlando.

To approach ServiceNow,

Create HI ticket.

https://hi.service-now.com/hisp

If it is ok for you can you share the PDI details on dhananjay.pawar1111@gmail.com I will check.

If possible share

Catalog item name and access details.

Thanks,

Dhananjay.

Dear All,

I had the same issue (I am on Paris).

I logged a ticket with ServiceNow and they confirmed it is a bug.

The regex works with the catalog item in the backend, but it doesn't work in the service portal.

They logged a problem.