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

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -