I have a several parameters that I use as command line
options in MATLAB scripts.
I want to
match the coma or whitespace separated integers within the option that begins
with '-fields' using one regular expression.
Options Example:
-fields 1, 2, 3
-regions 4, 5, 6
I want to match '1' and '2' and '3' only.
I'm currently using two regular repressions,
the first to detect the -fields option and the second to detect the
coma or whitespace separated integers (?<=[,\s])(\d+)(?=$|[,\s])
with the results of the first pass.
I'd
prefer to use only one regular expression, but haven't been successful
to date. If you have any recommendations, please let me know.
Happy Holidays,
B
Normal
0
false
false
false
EN-US
ZH-CN
X-NONE
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-qformat:yes;
mso-style-parent:"";
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-para-margin:0in;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;}