Advertisement
itsjube

Untitled

Jan 28th, 2015
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 14.18 KB | None | 0 0
  1. for document in fixeddocuments:
  2.     grabfixedtext = re.findall('<FIXEDTEXT>.+<\/FIXEDTEXT>', document, flags=re.DOTALL)
  3.     grabdocno = re.findall('<DOCNO>.+<\/DOCNO>', document, flags=re.DOTALL)
  4.     for match in grabdocno:
  5.         print (match)
  6.  
  7.  
  8. output:
  9.  
  10.  
  11. <DOC>
  12. <DOCNO> AP890122-0002 </DOCNO>
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23. <FIXEDTEXT>
  24.    Horns blared, fireworks lighted the sky and
  25. strangers kissed in the streets Sunday night as fans celebrating the
  26. San Francisco 49ers Super Bowl victory turned the town into an
  27. impromptu open-air party.
  28.    Authorities closed several streets and Highway 480 near the
  29. Embarcadero because of crowds. Police reported numerous arrests,
  30. most for public drunkenness, but did not have exact figures.
  31.    Roman candles rocketed aloft as fans in the largely Hispanic
  32. Mission District erupted into the streets to celebrate the 20-16
  33. last-minute victory over the Cincinnati Bengals.
  34.    ``We stomped them like bugs in a barn,'' said William Bernhard,
  35. 21, from his post on a jammed street corner. ``For the last five
  36. minutes, it was like having an electric eel attached to your spine.''
  37.    ``I feel great,'' said Manuel Anaya, 20, of San Francisco as he
  38. jumped up and down on a crowded sidewalk, waving a 6-foot-long 49ers
  39. banner. ``I knew it all the way. I never gave up, I never gave up.''
  40.    A man leaned from an apartment window overlooking Mission Street,
  41. and played a trombone.
  42.    ``We expect the unusual right now,'' said Officer Stephanie
  43. Thorne at the Mission District police station. ``Cars driving by
  44. with their boom boxes, honking their horns. They're going pretty
  45. good out there.''
  46.   Additional officers were on duty for the evening, Thorne said,
  47. although she couldn't say how many.
  48.    At the jammed Mad Hatter sports bar, fans leaped into the air,
  49. roaring, slapping high fives and wagging fingers at the television
  50. screen.
  51.    At Perry's, a bar, host Rob Hunter said the atmosphere has been
  52. ``insane'' all day.
  53.   ``They've been going crazy ...,'' Hunter said. ``We knew we were
  54. going to win it.''
  55.    ``You can't walk on the street, you can't get in the door,'' he
  56. said. ``That's what's going on. We had fire trucks, horses and
  57. police blowing their sirens. It was great. Now they're blocking off
  58. the street.''
  59.   At a Redwood City bar-restaurant called Clark's, which is owned
  60. by former 49ers wide receiver Dwight Clark, the crowd ``went crazy''
  61. when 49er quarterback Joe Montana was shown on the post-game show
  62. wearing a hat advertising the tavern, said hostess Pameaux Hudson.
  63.    ``We had people on top of people and people on each other's laps,
  64. sitting, standing, leaning,'' she said.
  65.   Elsewhere, the broadcast of the game was interrupted for fans in
  66. at least two parts of the country.
  67.   In Los Angeles, the audio portion of a cable television broadcast
  68. was disrupted for a few seconds with music from ``The Jetsons''
  69. cartoon and an anti-Semitic slur.
  70.   ``First there was music from `The Jetsons' cartoon show. Then
  71. someone said something about Century Cable and `there's too many
  72. (expletive deleted) Jews in this industry,''' said Doug Debber, a
  73. viewer in Santa Monica.
  74.    The interruption occurred about 3:15 p.m. when an audio signal
  75. invaded Century's cable system, affecting viewers in West Los
  76. Angeles, Santa Monica and Beverly Hills, a company official said.
  77.   ``I'm baffled at how it was done and I'm shocked and outraged at
  78. the statements that were made,'' said Bill Rosendahl, vice president
  79. of Century Southwest Cable Television in Santa Monica.
  80.   In eastern Ohio and the northern panhandle of West Virginia,
  81. viewers of WTOV television missed much of the second quarter.
  82. Technical problems put the station off the air for about 25 minutes,
  83. a station worker said. The station serves a market of 154,000
  84. households.
  85.  
  86.   Profound changes are at work in the American
  87. Midwest, sent reeling this decade with blows to its auto, steel and
  88. farming powerhouses. For autos, the Midwest was the place, Detroit
  89. the hub. Chicago and St. Louis also boasted auto plants. Now,
  90. Japanese automakers are setting up shop in rural, largely white
  91. communities and jobs are becoming increasingly scarce for big-city
  92. blacks. The first story in a four-part AP Extra series, ``The
  93. Changing Heartland,'' examines this trend.
  94.  
  95.   With a college campus and fertile fields,
  96. this patch of mid-America is a place where students learn and
  97. farmers earn side by side. But corn country has a new face producing
  98. a new crop _ cars.
  99.   Last fall, this tranquil town and its twin city, Bloomington,
  100. joined a growing number of smaller Midwest locales with
  101. Japanese-associated plants that are shaking up the auto industry.
  102.   The increasing Japanese presence in America's midsection _ plants
  103. in Ohio, Michigan, Kentucky, Tennessee, one planned for Indiana, and
  104. Chrysler-Mitsubishi here _ is creating work and growth in white
  105. rural areas while jobs and opportunity disappear in heavily minority
  106. big cities.
  107.    ``Certainly, it's a restructuring of the auto industry,'' said
  108. Richard Hill, a Michigan State University urban affairs and
  109. sociology professor. ``The reorganization ... is definitely
  110. detrimental to blacks.''
  111.   The trend has aroused concern in a business that's already lost
  112. thousands of blue-collar jobs, raised questions about potential
  113. bias, and worried blacks, who've long regarded the auto industry as
  114. a steppingstone to a better life.
  115.   ``Auto shops were really the bridge that brought black people
  116. from the lower class to the middle class,'' said Joe Wilson, former
  117. head of a United Auto Workers local at a closed Detroit plant.
  118. ``What are you going to do for the people left behind, locked up in
  119. the ghetto who have no place to go and no car to get out to rural
  120. areas?''
  121.   Japanese automakers, who've invested $5 billion in U.S.-based
  122. facilities in the last decade, point to their affirmative action
  123. programs and insist transportation, education and the work ethic _
  124. not race _ determine location. But some academics also claim the
  125. Japanese generally avoid unionized areas and towns with large pools
  126. of U.S. autoworkers, preferring to train novices.
  127.    Whatever the reason, communities such as Bloomington-Normal _
  128. thriving, white-collar towns that are worlds apart from
  129. gasping-for-survival, blue-collar cities like Detroit _ are becoming
  130. motor capitals.
  131.    ``It's just a different culture,'' said Bloomington Mayor Jesse
  132. Smart. ``This whole city is like a big neighborhood. (And) with
  133. modern auto plants being clean, it's not smokestack anymore; it's
  134. compatible with agriculture.''
  135.   In Bloomington-Normal, insurance, farming and academia are big.
  136. Urban blight, crime and unemployment are not.
  137.   Bloomington-Normal, 4 percent minority, had a 4.1 percent
  138. unemployment rate in October. Detroit, 65 percent minority, had a
  139. 10.1 percent jobless level.
  140.   Studies have shown black men have been devastated by industrial
  141. decline. In the Detroit area, 52 percent of black men in heavy
  142. manufacturing production lost their jobs from 1979 to 1984,
  143. according to a study by Michigan State's Hill.
  144.    Nationwide, about 27 percent of blacks lost their heavy
  145. manufacturing jobs in the same period, said the study, based on
  146. Equal Employment Opportunity Commission reports.
  147.    Future prospects are even bleaker.
  148.    A 1988 study concluded Japanese ``behavior with regard to site
  149. location and hiring practices heightens rather than eases the
  150. dilemma of blacks who are being rapidly displaced from their
  151. traditional American employers.''
  152.    The study, by University of Michigan professors Robert Cole and
  153. Donald Deskins, said although they had no concrete evidence, they
  154. believe ``avoidance of blacks is one factor'' for the Japanese in
  155. determining plant sites.
  156.    ``I think it's a factor,'' Deskins said. ``I can't say this is
  157. their intent.''
  158.    The study found while blacks comprise 11 percent of the civilian
  159. labor force, they represent 17.2 percent of workers at the Big Three
  160. U.S. automakers.
  161.    In contrast, the study said, Mazda Motor Manufacturing (USA)
  162. Corp.'s plant in Flat Rock, Mich., has a potential black labor pool
  163. of 29 percent and Honda of America Manufacturing Inc., in
  164. Marysville, Ohio, has one of 10.5 percent. Company officials say
  165. their black workforce is 15.1 percent and 5.1 percent, respectively.
  166.   Honda spokesman Roger Lambert disagreed with the calculations and
  167. also pointed out the company recruits at black colleges.
  168.   Honda, however, agreed last March to give $6 million to 377
  169. blacks and women after an EEOC investigation concluded they should
  170. have been hired sooner.
  171.   The EEOC claimed Honda employed discriminatory practices with a
  172. 30-mile hiring radius that excluded Columbus, Ohio, which has the
  173. area's largest minority population. Honda, which expanded its hiring
  174. area before the settlement, admitted no wrongdoing.
  175.    Many Japanese-associated auto plants are close to universities
  176. and near Interstate 75, dubbed Auto Alley, which stretches south
  177. from Michigan.
  178.    Toyota is in Georgetown, Ky., near the University of Kentucky;
  179. Chrysler-Mitsubishi is in Normal, home of Illinois State University,
  180. while Subaru-Isuzu Automotive Inc. is near Lafayette, Ind., across
  181. the river from Purdue.
  182.    These towns say automakers are attracted to cheaper land, lower
  183. taxes, open space and a well-educated work force.
  184.    Bloomington-Normal, population 87,718, was appealing because of
  185. its good highway and rail systems, incentives, strong work ethic and
  186. schools, said G. Glenn Gardner, former chairman of Diamond-Star
  187. Motors Corp., the firm formed by Chrysler and Mitsubishi.
  188.    ``We needed people with very good communication skills _ verbal,
  189. written and reading,'' he said. ``Some of the major larger cities
  190. have a very difficult time graduating significant numbers of
  191. students.''
  192.    In Tippecanoe County, surrounding Lafayette, one in four people
  193. 25 years and older has four years of college, said Mark Davis,
  194. president of Greater Lafayette Progress Inc., a non-profit
  195. development corporation.
  196.    ``What kind of public education system does Detroit have?'' he
  197. asked. ``What kind of technological capability in terms of college
  198. graduates does Detroit have?
  199.    ``There's no God-given right big cities should be viewed as the
  200. automotive centers,'' he said. ``We small towns, technologically
  201. sophisticated centers, think we can compete, too.''
  202. </FIXEDTEXT></DOC
  203. <DOCNO> AP890122-0001 </DOCNO>
  204. <DOCNO> AP890122-0002 </DOCNO>
  205. <DOCNO> AP890122-0002 </DOCNO>
  206. <DOCNO> AP890122-0003 </DOCNO>
  207. <DOCNO> AP890122-0003 </DOCNO>
  208. <DOCNO> AP890122-0004 </DOCNO>
  209. <DOCNO> AP890122-0005 </DOCNO>
  210. <DOCNO> AP890122-0006 </DOCNO>
  211. <DOCNO> AP890122-0007 </DOCNO>
  212. <DOCNO> AP890122-0008 </DOCNO>
  213. <DOCNO> AP890122-0009 </DOCNO>
  214. <DOCNO> AP890122-0010 </DOCNO>
  215. <DOCNO> AP890122-0011 </DOCNO>
  216. <DOCNO> AP890122-0012 </DOCNO>
  217. <DOCNO> AP890122-0012 </DOCNO>
  218. <DOCNO> AP890122-0013 </DOCNO>
  219. <DOCNO> AP890122-0014 </DOCNO>
  220. <DOCNO> AP890122-0015 </DOCNO>
  221. <DOCNO> AP890122-0016 </DOCNO>
  222. <DOCNO> AP890122-0016 </DOCNO>
  223. <DOCNO> AP890122-0017 </DOCNO>
  224. <DOCNO> AP890122-0017 </DOCNO>
  225. <DOCNO> AP890122-0018 </DOCNO>
  226. <DOCNO> AP890122-0018 </DOCNO>
  227. <DOCNO> AP890122-0018 </DOCNO>
  228. <DOCNO> AP890122-0018 </DOCNO>
  229. <DOCNO> AP890122-0018 </DOCNO>
  230. <DOCNO> AP890122-0018 </DOCNO>
  231. <DOCNO> AP890122-0018 </DOCNO>
  232. <DOCNO> AP890122-0018 </DOCNO>
  233. <DOCNO> AP890122-0019 </DOCNO>
  234. <DOCNO> AP890122-0020 </DOCNO>
  235. <DOCNO> AP890122-0021 </DOCNO>
  236. <DOCNO> AP890122-0022 </DOCNO>
  237. <DOCNO> AP890122-0023 </DOCNO>
  238. <DOCNO> AP890122-0024 </DOCNO>
  239. <DOCNO> AP890122-0025 </DOCNO>
  240. <DOCNO> AP890122-0026 </DOCNO>
  241. <DOCNO> AP890122-0027 </DOCNO>
  242. <DOCNO> AP890122-0027 </DOCNO>
  243. <DOCNO> AP890122-0027 </DOCNO>
  244. <DOCNO> AP890122-0027 </DOCNO>
  245. <DOCNO> AP890122-0027 </DOCNO>
  246. <DOCNO> AP890122-0027 </DOCNO>
  247. <DOCNO> AP890122-0028 </DOCNO>
  248. <DOCNO> AP890122-0028 </DOCNO>
  249. <DOCNO> AP890122-0028 </DOCNO>
  250. <DOCNO> AP890122-0029 </DOCNO>
  251. <DOCNO> AP890122-0030 </DOCNO>
  252. <DOCNO> AP890122-0031 </DOCNO>
  253. <DOCNO> AP890122-0032 </DOCNO>
  254. <DOCNO> AP890122-0033 </DOCNO>
  255. <DOCNO> AP890122-0034 </DOCNO>
  256. <DOCNO> AP890122-0035 </DOCNO>
  257. <DOCNO> AP890122-0036 </DOCNO>
  258. <DOCNO> AP890122-0037 </DOCNO>
  259. <DOCNO> AP890122-0038 </DOCNO>
  260. <DOCNO> AP890122-0038 </DOCNO>
  261. <DOCNO> AP890122-0039 </DOCNO>
  262. <DOCNO> AP890122-0040 </DOCNO>
  263. <DOCNO> AP890122-0041 </DOCNO>
  264. <DOCNO> AP890122-0042 </DOCNO>
  265. <DOCNO> AP890122-0043 </DOCNO>
  266. <DOCNO> AP890122-0044 </DOCNO>
  267. <DOCNO> AP890122-0045 </DOCNO>
  268. <DOCNO> AP890122-0046 </DOCNO>
  269. <DOCNO> AP890122-0047 </DOCNO>
  270. <DOCNO> AP890122-0048 </DOCNO>
  271. <DOCNO> AP890122-0049 </DOCNO>
  272. <DOCNO> AP890122-0050 </DOCNO>
  273. <DOCNO> AP890122-0051 </DOCNO>
  274. <DOCNO> AP890122-0052 </DOCNO>
  275. <DOCNO> AP890122-0053 </DOCNO>
  276. <DOCNO> AP890122-0054 </DOCNO>
  277. <DOCNO> AP890122-0055 </DOCNO>
  278. <DOCNO> AP890122-0056 </DOCNO>
  279. <DOCNO> AP890122-0057 </DOCNO>
  280. <DOCNO> AP890122-0058 </DOCNO>
  281. <DOCNO> AP890122-0059 </DOCNO>
  282. <DOCNO> AP890122-0060 </DOCNO>
  283. <DOCNO> AP890122-0061 </DOCNO>
  284. <DOCNO> AP890122-0062 </DOCNO>
  285. <DOCNO> AP890122-0063 </DOCNO>
  286. <DOCNO> AP890122-0064 </DOCNO>
  287. <DOCNO> AP890122-0065 </DOCNO>
  288. <DOCNO> AP890122-0066 </DOCNO>
  289. <DOCNO> AP890122-0067 </DOCNO>
  290. <DOCNO> AP890122-0068 </DOCNO>
  291. <DOCNO> AP890122-0069 </DOCNO>
  292. <DOCNO> AP890122-0070 </DOCNO>
  293. <DOCNO> AP890122-0071 </DOCNO>
  294. <DOCNO> AP890122-0072 </DOCNO>
  295. <DOCNO> AP890122-0073 </DOCNO>
  296. <DOCNO> AP890122-0074 </DOCNO>
  297. <DOCNO> AP890122-0075 </DOCNO>
  298. <DOCNO> AP890122-0076 </DOCNO>
  299. <DOCNO> AP890122-0077 </DOCNO>
  300. <DOCNO> AP890122-0078 </DOCNO>
  301. <DOCNO> AP890122-0079 </DOCNO>
  302. <DOCNO> AP890122-0080 </DOCNO>
  303. <DOCNO> AP890122-0081 </DOCNO>
  304. <DOCNO> AP890122-0082 </DOCNO>
  305. <DOCNO> AP890122-0083 </DOCNO>
  306. <DOCNO> AP890122-0084 </DOCNO>
  307. <DOCNO> AP890122-0085 </DOCNO>
  308. <DOCNO> AP890122-0086 </DOCNO>
  309. <DOCNO> AP890122-0087 </DOCNO>
  310. <DOCNO> AP890122-0088 </DOCNO>
  311. <DOCNO> AP890122-0089 </DOCNO>
  312. <DOCNO> AP890122-0090 </DOCNO>
  313. <DOCNO> AP890122-0091 </DOCNO>
  314. <DOCNO> AP890122-0092 </DOCNO>
  315. <DOCNO> AP890122-0092 </DOCNO>
  316. <DOCNO> AP890122-0092 </DOCNO>
  317. <DOCNO> AP890122-0092 </DOCNO>
  318. <DOCNO> AP890122-0092 </DOCNO>
  319. <DOCNO> AP890122-0093 </DOCNO>
  320. <DOCNO> AP890122-0094 </DOCNO>
  321. <DOCNO> AP890122-0095 </DOCNO>
  322. <DOCNO> AP890122-0096 </DOCNO>
  323. <DOCNO> AP890122-0097 </DOCNO>
  324. <DOCNO> AP890122-0098 </DOCNO>
  325. <DOCNO> AP890122-0099 </DOCNO>
  326. <DOCNO> AP890122-0100 </DOCNO>
  327. <DOCNO> AP890122-0101 </DOCNO>
  328. <DOCNO> AP890122-0102 </DOCNO>
  329. [Finished in 0.3s]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement