Skip to content

Add regexp into pdfsnip rule to remove extraspaces and linebreaks from snips from pdfs #121

Answered by buggyj
arunnbabu81 asked this question in Q&A
Discussion options

You must be logged in to vote

you can try this:

#extraInsert=*
@text=((*#extraInsert*))((*@removelf(@text)*))
#rule=/(\.)/g
#term=$1\n((*#extraInsert*))
@text=((*@text/#rule/#term*))
$text=((*@text*))\n\n

Replies: 5 comments 7 replies

Comment options

You must be logged in to vote
1 reply
@arunnbabu81
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@arunnbabu81
Comment options

Answer selected by arunnbabu81
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@buggyj
Comment options

@arunnbabu81
Comment options

@buggyj
Comment options

@arunnbabu81
Comment options

@buggyj
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants