![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
. . .
Industry Role:
Join Date: Apr 2007
Location: NY
Posts: 13,724
|
find and replace links in a large text file
is there a utility, or is it possible with notepad++ or any other of the popular code editors to do a search and replace with wildcards?
eg. say you have a large text file, that is scattered with a bunch of <a href... type of links, but they are all different as far as text and url's, I would like to use a * wildcard to be able to search for all occurences of any type of link and replace it with something else any ideas?
__________________
__________________ Looking for a custom TUBE SCRIPT that supports massive traffic, load balancing, billing support, and h264 encoding? Hit up Konrad!
Looking for designs for your websites or custom tubesite design? Hit up Zuzana Designs Check out the #1 WordPress SEO Plugin: CyberSEO Suite |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
<&(©¿©)&>
Industry Role:
Join Date: Jul 2002
Location: Chicago
Posts: 47,882
|
regexp FTW
__________________
Custom Software Development, email: woj#at#wojfun#.#com to discuss details or skype: wojl2000 or gchat: wojfun or telegram: wojl2000 Affiliate program tools: Hosted Galleries Manager Banner Manager Video Manager ![]() Wordpress Affiliate Plugin Pic/Movie of the Day Fansign Generator Zip Manager |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
. . .
Industry Role:
Join Date: Apr 2007
Location: NY
Posts: 13,724
|
__________________
__________________ Looking for a custom TUBE SCRIPT that supports massive traffic, load balancing, billing support, and h264 encoding? Hit up Konrad!
Looking for designs for your websites or custom tubesite design? Hit up Zuzana Designs Check out the #1 WordPress SEO Plugin: CyberSEO Suite |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
. . .
Industry Role:
Join Date: Apr 2007
Location: NY
Posts: 13,724
|
interesting, I need it to do some regexp matching though, the old url's are all different, and I want to match them all with one command
__________________
__________________ Looking for a custom TUBE SCRIPT that supports massive traffic, load balancing, billing support, and h264 encoding? Hit up Konrad!
Looking for designs for your websites or custom tubesite design? Hit up Zuzana Designs Check out the #1 WordPress SEO Plugin: CyberSEO Suite |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Now choke yourself!
Industry Role:
Join Date: Apr 2006
Posts: 12,085
|
wildcard to match any type of link? Sure!
Code:
/a[\s]+[^>]*?href[\s]?=[\s\"\']+(.*?)[\"\']+.*?>([^<]+|.*?)?<\/a>/i
__________________
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 | |
. . .
Industry Role:
Join Date: Apr 2007
Location: NY
Posts: 13,724
|
Quote:
![]()
__________________
__________________ Looking for a custom TUBE SCRIPT that supports massive traffic, load balancing, billing support, and h264 encoding? Hit up Konrad!
Looking for designs for your websites or custom tubesite design? Hit up Zuzana Designs Check out the #1 WordPress SEO Plugin: CyberSEO Suite |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
. . .
Industry Role:
Join Date: Apr 2007
Location: NY
Posts: 13,724
|
edit: not working for some reason, is the code right and I am doing something wrong? using regexp search but not matching
__________________
__________________ Looking for a custom TUBE SCRIPT that supports massive traffic, load balancing, billing support, and h264 encoding? Hit up Konrad!
Looking for designs for your websites or custom tubesite design? Hit up Zuzana Designs Check out the #1 WordPress SEO Plugin: CyberSEO Suite |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 |
So Fucking Banananananas
Industry Role:
Join Date: Mar 2003
Location: If I was in your ass you'd know it
Posts: 12,991
|
download textpad, it works great.
press F8, then use .*. as the wild card.
__________________
Email: Clicky on Me |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 |
Now choke yourself!
Industry Role:
Join Date: Apr 2006
Posts: 12,085
|
The above is Perl Regex, not "universal" regex.
__________________
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 |
. . .
Industry Role:
Join Date: Apr 2007
Location: NY
Posts: 13,724
|
oh ok, I was trying to use it with notepad++ and no luck with that
__________________
__________________ Looking for a custom TUBE SCRIPT that supports massive traffic, load balancing, billing support, and h264 encoding? Hit up Konrad!
Looking for designs for your websites or custom tubesite design? Hit up Zuzana Designs Check out the #1 WordPress SEO Plugin: CyberSEO Suite |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 |
Now choke yourself!
Industry Role:
Join Date: Apr 2006
Posts: 12,085
|
I just use TextPad for that kind of shit when on Windows It usually takes normal, or semi-perl regex just fine. Sorry, never used NP++.
__________________
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#13 |
. . .
Industry Role:
Join Date: Apr 2007
Location: NY
Posts: 13,724
|
found the answer:
Code:
<a href="[^"]+">[^<]+</a> thanks for the help, it was interesting, maybe this thread will help someone else too
__________________
__________________ Looking for a custom TUBE SCRIPT that supports massive traffic, load balancing, billing support, and h264 encoding? Hit up Konrad!
Looking for designs for your websites or custom tubesite design? Hit up Zuzana Designs Check out the #1 WordPress SEO Plugin: CyberSEO Suite |
![]() |
![]() ![]() ![]() ![]() ![]() |