Jump to content
UBot Underground

How to use $replace function to strip portion of url


Recommended Posts

I am trying to set a table cell a from a facebook url, strip off the ?created and then combine the numeric portion of the url to a text string which becomes the rss feed for the page

 

http://www.facebook.com/pages/Something-Goes-Here/185929538088957?created

 

I am able to change the url to this

http://www.facebook.com/pages/Something-Goes-Here/185929538088957

 

I want to take this

185929538088957

 

and add this to the begining

http://www.facebook.com/feeds/page.php?format=atom10&id=

 

so it becomes this

http://www.facebook.com/feeds/page.php?format=atom10&id=185929538088957

 

 

Can anyone point me in the right direction

test.ubot

Link to post
Share on other sites

Thanks That definately puts me on the right track.

 

I do have a question though in the middle of the facebook url where the /Something-Goes-Here/

it will different each time but it should be the name of the page

http://www.facebook.com/pages/Something-Goes-Here/

 

I could probably used the technique you showed me to ad a - between the page name but is there a way use wild cards instead?

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...