Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About indie

  • Rank

Profile Information

  • Gender
    Not Telling
  1. I'm looking to clean up some old vBulletin BBcode. I want to remove the actual codes and what is between them. So for example, I want to remove: [QT]random text here alpha-numeric etc.[/QT] Thanks!
  2. Thanks I'll try those. 1st one is a mysql query, second is a regex search/replace?
  3. Okay I can use EditPad Lite text editor which has regex. I just don't know what to do in search and replace. ([A-Za-z0-9\-\_]+) I know something like this can be added to the end of the URL to find the video code, but then what? When I click to replace it just adds that regex code to the URL, and it won't highlight the bbcode tag after it for removal. I just want to do this: Thanks
  4. Do you mean PHP can be used to change it in MYSQL? Not familiar with coding. Found this not sure it will help me: http://stackoverflow.com/questions/24261555/removing-bbcode-url-tag-from-string
  5. The purpose is one forum software treats this as an embed not a link (great). Moving to the new software they will be hyperlinks (not great) but if they are plain text with no bbcode they will be embedded after the import and the post task has run.
  6. Any help appreciated. So let's say in the db I have: [url]https://www.youtube.com/watch?v=RandomCharactersHere[/url] And I want it to be: https://www.youtube.com/watch?v=RandomCharactersHere I want to remove the URL code but only from youtube links so a replace all will not work unless it knows it is a YT link. Would something like this work? http://stackoverflow.com/a/35584060 So you could append [a-zA-Z0-9] to https://www.youtube.com/watch?v= So code that would essentially say: To trim tail: Find [url]https://www.youtube.com/watch?v=[a-zA-Z0-9][/url] and remove [/url] after string. To trim head: Find [url]https//www.youtube.com/watch...(not sure if I need entire string in this one) remove [url] before string. Would it need to know how many characters the video number was? [a-zA-Z0-9]{8} If so, I could go through however many it could possibly be to change them all. Of course I would also need to do this with url and URL to cover all cases but I could just do it twice, and also the share code https://youtu.be/, but I can figure the share code out once I get this. Thanks for any help!
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.