Info

此问题已关闭。 请重新打开它进行编辑或回答。

Using regexp to identify matches

2 次查看(过去 30 天)
GEORGIOS BEKAS
GEORGIOS BEKAS 2018-1-26
关闭: MATLAB Answer Bot 2021-8-20
I am trying to identify matches using the command regexp. I am trying to isolate either the first subset of a string (e.g. 4002), or expressions inside the parentheses.
s = '4002-247-8102, (2085) 141-1031, 317-535-4310'
splitStr = regexp(s,'[0-9]-\d';'([0-9])\d','match')

回答(0 个)

此问题已关闭。

标签

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by