regex - String substitution shell for latex -


I am trying to optimize an article to include in a LaTeX document. For this I am using the replacement letter for the cal. Although I get a problem with some of my questions like quote marks. For example, with this article:

Loss Problems The Europa N bet Los Masomos en Tudos Los Pesses "Alemenia no Estre cresendo RAPPind, Pero Conspiracy Vitta La Riaida en la RCCAN", Pasa Guilan "Ai Erllanda, por izapello, la econoia came 20%. En francia, la citecion no es dasperada, paro el near tempoño en anhingana almenia". Mientras, Italia y Espaà ± a yes vuelto a caer en la recesiÃÆ'à ⠀ ™ ÃÆ'à ¢ â,¬Å¡Ãƒâ € šÃ, · If it is any The word has been found at the beginning, but a '' (they are 2 characters: \ x27 \ x27) If this is the end, then the result should be the paragraph (should also be% sysmbol):

Europe has no problem, which is not for any son. "Almania no estre crescendo RAPIDEndo, pero conserviai vitat la ricaida en la resción", das guilan`` Erllanda, por izapello, la econoia cai a 20 %% en francia, la sitiocon es dasperada, paro el pass tempoño en anhingana almenia "Amientras, Italia, and Espaà ± ± a villa a Carr an La Resción, U Reino Unido Ababa Anabacir AAAC NAVinde An N Riccien.

I think a regxp should start adding a space symbol and match to the match, and the end is equal to one, but I do not know how to do it

You can check that " is the beginning of a line In or before any white spot:

  sed -r 's / (^ |) "/ \ 1` / g file name   

if Your version of sed extended regular expression summers You can say the udder does not have: % to avoid

  sed 's / \ (^ \ | \) \ "/ \ 1` / g'` filename   

and possibly other code like & amp; , $ , you To avoid all those people in the same class, use:

  sed -R / ([$%]) / \\\ 1 / g 'file name   

Both can also be added:

  sed - r / s (^ |) "/ / 1`` / g; Edit the name of a / ([$%]) / \\\ 1 / g 'file name   

: With your explanation, it seems that you have to say:

  sed -r 's / (^ |) "/ / 1`` / g; s /" / ""' '' 1 / G 'filename    

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -