私はこの質問が既に受け入れ答えを持っていますが、私は別の答えを追加しようと思いました:)
あなたが単語「大」の文字列である場合見つけることによってそれを行うことができます参照してください。あなたは両端オフ文字をカットしたい場合は半ばはあなたにもう少し柔軟性を与えるだろう使用
<cfscript>
myVar = "One of the myths associated with the Great Wall of China is that it is the only man-made structure";
// where is the word 'Great'?
a = myVar.FindNoCase("Great");
substring = myVar.removeChars(1, a-1);
writeDump(substring);
</cfscript>
:現代CFMLを使用すると、そのようにそれを行うことができます。以下のように記述されるだろうCFの古いバージョンでは
<cfscript>
myVar = "One of the myths associated with the Great Wall of China is that it is the only man-made structure";
// where is the word 'Great'?
a = myVar.FindNoCase("Great");
// get the substring
substring = myVar.mid(a, myVar.len());
writeDump(substring);
</cfscript>
:また、同じ結果を達成するために正規表現を使用することができ
<cfscript>
myVar = "One of the myths associated with the Great Wall of China is that it is the only man-made structure";
// where is the word 'Great'
a = FindNoCase("Great", myVar);
// get the substring
substring = mid(myVar, a, len(myVar));
writeDump(substring);
</cfscript>
、あなたはあなたの中に、より適切であるかを決定する必要がありますユースケース:
<cfscript>
myVar = "One of the myths associated with the Great Wall of China is that it is the only man-made structure";
// strip all chars before 'Great'
substring = myVar.reReplaceNoCase(".+(Great)", "\1");
writeDump(substring);
</cfscript>