How to extend a sprache parser to cope with leading and trailing free text

100 Views Asked by At

I have a sprache parser that successfully recognizes a variety of complex strings.

I now have to find these strings if they are embedded in free text. Is this possible?

For example, "FJ21 [7-20]" and "7.2x1.2 FULL" are examples of strings that my parser can match.

I need to be able to find them within text such as:

"The quick brown FJ21 [7-20] jumps over the lazy 7.2x1.2 FULL"

0

There are 0 best solutions below