class_docstr: A client to the Stanford CoreNLP server. 
code: def tokensregex(
      self,
      text,
      pattern,
      filter=False,
      to_words=False,
      annotators=None,
      properties=None,
  ):
      # this is required for some reason
      matches = self.__regex(
          "/tokensregex", text, pattern, filter, annotators, properties
      )
      if to_words:
          matches = regex_matches_to_indexed_words(matches)
      return matches
  
imports: import atexit
  import contextlib
  import enum
  import io
  import os
  import re
  import requests
  import logging
  import json
  import shlex
  import socket
  import subprocess
  import time
  import sys
  import uuid
  from datetime import datetime
  from pathlib import Path
  from urllib.parse import urlparse
  from stanza.protobuf import Document, parseFromDelimitedString, writeToDelimitedString, to_text
label_desc: Use image node_id 7 for calling the CoreNLPClient obj's underlying member method code with example usage: obj.tokensregex(text, pattern, filter, to_words, annotators, properties) and returns: matches