Hi,
I have a dictionary table with a definition text field. This field is of the following format:
(c-1) (c-2) ... (c-nth) definition
Each line always starts with at least one category keyword in parentheses, separated by a single space, followed the the definition of the word.
For example:
(comp) restart, reboot
(n, v) to chase
(adj) (seemingly) defeatable
(exp) to verify (a statement), to warrant
As you can see, the problem here is that the definition may or may not contain texts with parentheses and the latter may or may not be separated from the rest of the definition with a space.
Objective:
I would like to create new fields, category1, category2, etc. to capture the category keywords in parentheses associated with each word entry. For simplicity's sake let's assume that the definitions do NOT start with some text in a parenthesis (although I'd appreciated your thoughts on how to tackle this problem as well), my query/macro will return the following results for the four definitions above:
cat1 | cat2 | cat3
n | comp
n, v
adj | seemingly
exp
Any ideas?
I have a dictionary table with a definition text field. This field is of the following format:
(c-1) (c-2) ... (c-nth) definition
Each line always starts with at least one category keyword in parentheses, separated by a single space, followed the the definition of the word.
For example:

(n, v) to chase
(adj) (seemingly) defeatable
(exp) to verify (a statement), to warrant
As you can see, the problem here is that the definition may or may not contain texts with parentheses and the latter may or may not be separated from the rest of the definition with a space.
Objective:
I would like to create new fields, category1, category2, etc. to capture the category keywords in parentheses associated with each word entry. For simplicity's sake let's assume that the definitions do NOT start with some text in a parenthesis (although I'd appreciated your thoughts on how to tackle this problem as well), my query/macro will return the following results for the four definitions above:
cat1 | cat2 | cat3
n | comp
n, v
adj | seemingly
exp
Any ideas?