Its is safe use a big list of words with alternatives (|) or better use another tool in Grep?
i have lists hundred of words need tagged grep.
i know if right way or wrong/dangerous method
until moment f/change grep window accepting these long strings seems not orthodox...
^(\w+)(\w+)\s(abraham|Águeda|agustín|alameda|alba|alejandro|alonso|america|américa|america|américa|ana| andrei|andrés|Ángel|angel|Ángela|anselmo|antoine|antonio|antonium|armando|bárbara|barbara| bárbara|barbaram|bartolomé|bautista|benito|bernardo|camilo|carlos|cayetano|celestino|césar |clara|claudio|constanza|christian|damien|diana|diego|dieudonné|dionisio|dolores|domingo|d onato|eduardo|edward|eloy|elvira|emmanuel|emmanuelem|enrique|enrrique|esteban|estenjo|Étie nne|eugenio|eusebio|eustaquio|exmo|fabio|felipe|félix|fermín|fernando|francisca|francisci| francisco|fulgencio|gabriel|gabriela|gerald|germán|gillet|gracia|gregorio|guillermo|gustav o|henrique|hermes|ignacia|ignacio|ildefonso|indalecio|inocencio|isabel|isabela|jacinto|jai me|javier|javiera|joaquín|jorge|josé|josef|josefa|joseph|juan|juana|julián|just|justo|laur ent|louiche|lucas|lucía|luis|manuel|marcos|maría|mauricio|nepomuceno|nepomuceno camacho|nicolás|olga|pablo|paula|pedro|pumarino|ramón|renán|ricardo|roberto|rosa|rosalía| santiago|saturio|segunda|segundo|silvestre|simón|sinforoso|socorro|tadeo|tercera|tomás|tor ibio|vicenta|vicente|victoriano|vladimir|vladimir|william|xavier|yolanda|zenón)\s(\w+)$
jonware or peter k have more whether idea, don't see inherent problem other potentially big performance hit.
that said, these capitalized words don't start paragraph. paragaphs have more 1 sentence? if not, there ever capitalized word not starting paragraph thar not want match? if not, perhaps simpler ^\w+\s\u\l+ work.
i don't think there's functional difference between ^(\w+)(\w+) , \w+ you might need include \s\w+$ @ end if want limit match 3 word paragraphs. maybe meant ^(\w+)\s(\w+) pick third word in four-word paragraph?
More discussions in InDesign
adobe
Comments
Post a Comment