MATLAB: How to use regexpi on a phrase that has a “*”

asteriskcellfunregexpregexpiwildcard

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 🙁

Best Answer

If I understood right using \* instead of * should work.