Find a regular expression that matches the request header

Project requirements. Deep web crawler. The input request header can be customized. The front end needs to validate the format of the request header regularly. Its format requires the aura b format, with multiple separated by commas, regardless of its own format with commas, you can use special symbols. Pray for the great god.


what is the Avram b format?


this is not a regular match
it is recommended to design
input box: add and delete input box

then there will be no problem

if I write a rough pattern in this way, try
^ [^:,]: + | [^:] $
satisfies
1. Do not start with:,
2. Do not end with:
3. There are more than one in the middle:

unsatisfied situation
in the middle,: not in pairs

Menu