regex - removing '' chars from string using regexp in matlab -



regex - removing '<' '>' chars from string using regexp in matlab -

in simulink have propagate signal this:

<foo_boo>

and @ source

foo_boo

i build regular look homecoming

<foo_boo>

simply foo_boo , foo_boo foo_boo.

in other words, regular look remove '>' , '<' string , string can include [a-za-z_0-9] chars.

pretty easy. utilize regexprep search symbols contain < or > in input string , replace them nothing. in other words:

out = regexprep(in, '<|>', '');

in string want operate on (i.e. <foo_boo>) , out contains processed string.

example:

in = '<foo_boo>'; out = regexprep(in, '<|>', '') out = foo_boo

regex matlab

Comments

Popular posts from this blog

c - Compilation of a code: unkown type name string -

ubuntu - Bash Script to Check That Files Are Being Created -

Php operator `break` doesn't stop while -