<div id="rssConsumer" style="width:100%; border:1px solid #e8e8e8; margin:0px 0px 15px 0px;"><div style="margin:8px 10px 8px 10px; font-weight:bold; font-size:1.4em;">Recent Tweets</div>
<cffeed action="read" source="http://twitter.com/statuses/user_timeline/7717612.rss" name="tweetfeed">
</cffeed>
<cfloop from="1" to="3" index="i">
<cfoutput>
<div style="margin:8px 10px 8px 10px; padding:0px 0px 8px 0px; border-bottom:dotted; border-color:##CCC;">
<cfset noWharton = Right(#tweetfeed.item[i].title#, len(#tweetfeed.item[i].title#) - 9)>
<cfset newDate = Mid(#tweetfeed.item[i].pubdate#,5,12)>
#noWharton#<br />
#newDate#</div>
</cfoutput>
</cfloop>
<div style="margin:0px 10px 10px 10px;"><a href=http://twitter.com/wharton target="_blank">more »</a></div>
</div>
</div>
0
A
답변
1
<cfloop from="1" to="3" index="i">
<cfif find("@", tweetfeed.item[i].title) eq 0 >
<cfoutput>
<div style="margin:8px 10px 8px 10px; padding:0px 0px 8px 0px; border-bottom:dotted; border-color:##CCC;">
#Right(#tweetfeed.item[i].title#, len(#tweetfeed.item[i].title#) - 9)#<br />
#Mid(#tweetfeed.item[i].pubdate#,5,12)#
</div>
</cfoutput>
</cfif>
</cfloop>
+0
@를 첫 번째 문자로 사용하여 트윗을 제거하려면 어떻게 부분 문자열을 사용해야합니까? –
+0
find는 발생의 색인을 반환하며이 경우 1입니다. 따라서
+0
Sweet! 생명의 은인에게 감사드립니다! –
관련 문제
- 1. ColdFusion/OAuth/Twitter API
- 2. Twitter, oauth 및 coldfusion
- 3. URL에서 백 슬래시는 어떻게 제거합니까?
- 4. 답장을 둘러보세요.
- 5. 이 경고는 어떻게 제거합니까?
- 6. GtkHBox에서 위젯을 어떻게 제거합니까?
- 7. 후행 슬래시는 어떻게 제거합니까?
- 8. 레일스 플러그인을 어떻게 제거합니까?
- 9. 어떻게 rapache를 제거합니까?
- 10. 일부 쿼리는 어떻게 제거합니까?
- 11. JVCL을 어떻게 제거합니까?
- 12. 문장의 일부를 어떻게 제거합니까?
- 13. Perl 모듈을 어떻게 제거합니까?
- 14. .NET Framework를 어떻게 제거합니까?
- 15. 어떻게 강제로 제거합니까?
- 16. jcrop은 어떻게 제거합니까?
- 17. Silverlight DataForm에서 패딩을 어떻게 제거합니까?
- 18. firefox : 부가 기능을 어떻게 제거합니까?
- 19. Oracle에서 선행 공백은 어떻게 제거합니까?
- 20. PHP에서 문자열의 숫자를 어떻게 제거합니까?
- 21. 이클립스에서 tasktop plugin을 어떻게 제거합니까?
- 22. javascript를 사용하여 div를 어떻게 제거합니까?
- 23. NSURL의 끝에서 3자를 어떻게 제거합니까?
- 24. 활동을 마치면 키보드를 어떻게 제거합니까?
- 25. Wordpress에서 인라인 스타일을 어떻게 제거합니까?
- 26. Tkinter에서 어떻게 위젯에서 포커스를 제거합니까?
- 27. CATiledLayer에서 회전 인공물을 어떻게 제거합니까?
- 28. Sharepoint Designer에서 사이트를 어떻게 제거합니까?
- 29. RabbitMQ에서 대기열 바인딩을 어떻게 제거합니까?
- 30. 당신은 어떻게 sqlite3를 완전하게 제거합니까?
@ 문자를 첫 문자로 사용하여 트윗을 제거하려면 어떻게해야합니까? –