IgnoreCase
Usage
• IgnoreCase 是串操作和搜索函数的一个选项,指定大小字母是否应当认为是相同的。
Notes
• 在缺省设置IgnoreCase -> False, 大小字母认为是完全不同的。
• 在缺省设置IgnoreCase -> True, 大小字母认为是相同的。 • IgnoreCase 是 StringPosition, StringReplace, StringMatchQ, Find and FindList的一个选项。 • IgnoreCase 决不影响Mathematica表达式的分解。 • 参见 Mathematica 全书 : 节 2.7.2.
Further Examples
This gives the positions in the string where the letter s occurs, regardless of case.
In[1]:=
|
Out[1]=
|
In the first case only those strings that match explicitly are replaced; in the second any string that matches, ignoring case, will be replaced.
In[2]:=
|
Out[2]=
|
In[3]:=
|
Out[3]=
|
|