Results 1 to 2 of 2

Thread: Reg Exp Help needed

  1. #1
    anantshri is offline on leave from Net Builders : will post rarely
    Join Date
    Apr 2010
    Location
    india
    Posts
    338
    Thanks
    80
    Thanked 47 Times in 40 Posts

    Reg Exp Help needed

    can any one provide me with a regular expression that can convert.



    the changes are instead of watch?v= it will be /v/ and rest are all constant.

    can anybody help.

  2. #2
    anantshri is offline on leave from Net Builders : will post rarely
    Join Date
    Apr 2010
    Location
    india
    Posts
    338
    Thanks
    80
    Thanked 47 Times in 40 Posts
    done by a simple str_replace

    $data = str_replace('/watch?v=', '/v/', $data);

Similar Threads

  1. [WTB] PR writer needed
    By phanirocks in forum Content
    Replies: 0
    Last Post: 10 March, 2010, 17:14 PM
  2. [WTB] DP A/c Needed
    By swift in forum Services
    Replies: 0
    Last Post: 9 September, 2009, 04:05 AM
  3. Adwords Help Needed
    By lethalboom in forum PPC
    Replies: 1
    Last Post: 8 July, 2009, 10:06 AM
  4. MSN SEO Guide needed
    By imported_nikon in forum Promoting
    Replies: 2
    Last Post: 20 June, 2009, 00:41 AM
  5. PHP if & else help needed
    By Mr.Bill in forum Programming
    Replies: 5
    Last Post: 15 February, 2009, 12:35 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •