[請益] 請問如何適當根據中文長度抓出對應的英 …

看板PHP作者 (Daniel)時間15年前 (2010/05/06 10:00), 編輯推噓1(100)
留言1則, 1人參與, 最新討論串1/2 (看更多)
related to 9462 感謝大家的幫忙, 現在已經可以判斷網頁的文字是否為中文字, 以下列為例: Kaohsiung City Mayor Chen Chu (陳菊) looks set to represent the Democratic Progressive Party (DPP) in November's Greater Kaohsiung elections after her big win in the party's polls yesterday. Internal party polls released by the DPP showed Chen currently enjoys 59 percent support among Kaohsiung area voters, compared with 41 percent for Kaohsiung County Commissioner Yang Chiu-hsing (楊秋興). Both had been vying for the DPP's nomination in the soon-to-be merged municipality for the year-end special municipality elections, a key race seen as a precursor to the 2012 presidential elections. 通常中文字都是在括號裡, 但是要抓括號前面的英文字, 有時人名是二個字, 有時是三個字,請問這樣要怎樣確切抓出正且的中文翻譯呢 ps. 有時新聞文章會有機構的名稱, 就沒辦法人名最多三個字的方法來辨別了 output exapmle: Yang Chiu-hsing 楊秋興 謝謝大家 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.109.21.196 ※ 編輯: danielkimo 來自: 140.109.21.196 (05/06 10:03)

05/06 10:18, , 1F
英文首字大寫﹑姓名單字對照表~ 試看看啊
05/06 10:18, 1F
文章代碼(AID): #1BuYB09H (PHP)
文章代碼(AID): #1BuYB09H (PHP)