|
|
#1 |
|
the admiral formerly known as overclocked
![]() ![]() ![]() ![]() ![]() Join Date: Aug 2000
Location: Outside the mainstream
Posts: 5,922
|
Need help with regular expressions
This started out innocently enough. I wanted a simple export of my bookmarks from Firefox. I did that, and I have my bookmarks.html file. I open it up to take a look, and what do I see? A whole bunch of useless additional information.
Here's an example of what I want for each individual link: Code:
Here's an example of what I have for each link: Code:
The pattern of the information I want to delete is the same for every link. Code:
Code:
I have a text editor that can handle regular expressions. The way I understand it, I should be able to use a regular expression to do a pattern match so I can delete the extraneous stuff. I simply want to do a search and replace, replacing the extra stuff with nothing, essentially deleting it. I just don't have a head for this kind of thing though. Coding and scripting are not my strong suits. If you put some code in front of me and let me study it I can usually figure out what to do from there, but making up stuff from scratch has always been beyond me. My skills are in tech support, not programming or scripting. Help? tia -OC
__________________
But what is adulthood except a delayed end-run around our parents' better judgment? -- Peter Egan *cough* |
|
|
|
|
|
#2 |
|
the admiral formerly known as overclocked
![]() ![]() ![]() ![]() ![]() Join Date: Aug 2000
Location: Outside the mainstream
Posts: 5,922
|
Figured it out.
ADD_DATE{.*}" |
|
|
|