Simple Regex (regular Expressions) Help

I have the plain-text string (see bottom of post) and need to extract a few pieces of data using simple regular expressions.

What to extract:

1. Mike Baltic
2. Nalinger Public Charter School
3. CEO
4. 510-377-9112 x 106
5. null
6. US

The regular expressions need to be in the following format (these are working examples):

(?i)(arrival date|arrival):?\s*(?!\w+:\s)(?P.*\w)[ \t]*\r?\n

or

(?i)(phone|tel|telephone|ph|mobile|cell)( num(ber)?)?([ \t]*#[ \t]*)?:…

Leave a Reply

Your email address will not be published. Required fields are marked *