Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

String manipulation in a document

by ponni (Novice)
on Jul 10, 2019 at 05:32 UTC ( #11102623=note: print w/replies, xml ) Need Help??


in reply to Grep a particular text

Dear PerlMonks

I need to extract the query information starts with "\qr{...text..} and placed in the next paragraph for all section in a document. How to achieve using perl

Here i listed some occurances:

\section{Results\qr{text ... text}}

Normal paragraph text here...

\section{Funding\qr{text ... text}}

Funding text here...

Output required

\section{Results}

Normal paragraph\qr{Results section query text ... text} text here...

\section{Funding}

Funding text \qr{Funding query text bla bla bla}here...

Replies are listed 'Best First'.
Re: String manipulation in a document
by haukex (Chancellor) on Jul 10, 2019 at 06:48 UTC

    Welcome to Perl and the Monastery, ponni!

    AFAICT, this is simply additional information to your question from yesterday. In this case, please reply to the original thread instead of starting a new one. But please don't re-post this node either; I have considered it for moving into that thread.

Re: String manipulation in a document
by GrandFather (Sage) on Jul 10, 2019 at 05:51 UTC

    What have you tried? What documentation have you read?

    Optimising for fewest key strokes only makes sense transmitting to Pluto or beyond

      Dear sir, i am new to perl, and i need to cleanup my .tex file.

        That is implied, but what are you expecting from us? We are happy to help with coding issues, but we are not usually a code writing service. If you show that you have made some effort we can help you go the next step. If you make no effort then probably neither will we.

        Optimising for fewest key strokes only makes sense transmitting to Pluto or beyond

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11102623]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2020-04-09 01:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The most amusing oxymoron is:
















    Results (46 votes). Check out past polls.

    Notices?