Repetitive regex
Hey folks,
Is it possible to have a regex that will parse out groups of characters from the following example. The '|' characters are part of th e text, if anyone's familiar with Fitnesse they'll recognise the syntax
| This | a | is | b | the | c | full | d | method | e | name |
basically the line is delimited using the '|' character and every odd token i.e. This, is, the, full, method, name makes up the whole method name. Thisisthefullmethodname.
Is it possible to write a regular expression that will parse out these values? Even to provide a Java pattern that will allow me to check each odd group?
I've tried the following but to no avail.
(\|[^\|]*?)*
Thanks,
Mark.
|