Having trouble with my regex to extract special characters not enclosed within double quotes - the test function always returns false
.
As a beginner in regex, any advice or guidance would be greatly appreciated.
test.html
<input
class="bg-white appearance-none border border-black rounded w-full py-2 px-4 text-black leading-tight focus:outline-none focus:bg-white focus:ring-0 focus:shadow-none ring-offset-0 focus:border-primary dark:bg-gray-800 dark:text-gray-300 m-3"
id="inline-full-name" type="text" [maxlength]="maxChars" [(ngModel)]="newproxyAddr" (ngModelChange)="validation($event)">
test.ts
public validation(addr: any) {
const checkEnclosedPattern = /[][@()\[\]{};,:.<>](?=(?:(?:[^"]*"){2})*[^"]*$)/
console.log(checkEnclosedPattern.test(addr.toString()))
}