code: def test_split_with_regex(self):
      featurizer = SimpleFeaturizer.from_config(
          SimpleFeaturizer.Config(split_regex=r"[\s,;!.?\"\(\)\-]+"),
          FeatureConfig(),
      )
      sentence = """
              Your bones don't break, mine do. That's clear. Your cells react to
              bacteria and viruses differently than mine. You don't get sick,
              I do. That's also clear. But for some reason, you and I react the
              exact same way to water. We swallow it too fast, we choke. We get
              some in our lungs, we drown. However unreal it may seem, we are
              connected, you and I. We're on the same curve, just on opposite
              ends.
          """
      expected = """
              your bones don't break mine do that's clear your cells react to
              bacteria and viruses differently than mine you don't get sick
              i do that's also clear but for some reason you and i react the
              exact same way to water we swallow it too fast we choke we get
              some in our lungs we drown however unreal it may seem we are
              connected you and i we're on the same curve just on opposite ends
          """.split()
      tokens = featurizer.featurize(
          InputRecord(raw_text=sentence)
      ).tokens
      self.assertListEqual(expected, tokens)
  
      sentence = '"Please, buy me a coffee?" He implored-in vain.'
      expected = "please buy me a coffee he implored in vain".split()
      tokens = featurizer.featurize(
          InputRecord(raw_text=sentence)
      ).tokens
      self.assertListEqual(expected, tokens)
  
file_path: pytext/pytext/data/test/simple_featurizer_test.py
imports: import unittest
  from pytext.config.field_config import FeatureConfig
  from pytext.data.featurizer import InputRecord, SimpleFeaturizer
label_desc: Use image node_id 6 for calling the SimpleFeaturizerTest obj's underlying member method code with example usage: obj.test_split_with_regex() without return types