フィルターのクリア

How do I use regexpi on a phrase that has a "*"?

1 回表示 (過去 30 日間)
Megna Hari
Megna Hari 2014 年 8 月 4 日
コメント済み: Ben11 2014 年 8 月 4 日
If * is used as a wildcard in regexp, how do I match to a phrase that has a star in it?
texta=find(~cellfun(@isempty, regexpi(Lines,'^text*, 'match')));
Instead of giving me the lines that have "text*" written out, it gives me all the lines :(

採用された回答

Ben11
Ben11 2014 年 8 月 4 日
If I understood right using \* instead of * should work.
  2 件のコメント
Megna Hari
Megna Hari 2014 年 8 月 4 日
Thank you!!!
Ben11
Ben11 2014 年 8 月 4 日
My pleasure!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCharacters and Strings についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by