erogol
erogol

Reputation: 13614

How to match this line by regular expression in MATLAB?

Here is the line I try to match:

976 | 9760000 | 9769999 | Blabon | List

It is simply on a multi line string inside Matlab variable. I try to match this line. How can I do it in Matlab ?

Upvotes: 0

Views: 66

Answers (1)

Stephan
Stephan

Reputation: 43013

Try something like this:

\d{3}\s+\|(\s+\d{7}\s+\|){2}\s+[a-zA-Z]+\s+\|\s+[a-zA-Z]+

Upvotes: 1

Related Questions