Got more questions? Find advice on: ASP | SQL | XML | Windows
in Search
Welcome to RegexAdvice Sign in | Join | Help

REGEX solution for a URL

Last post 11-15-2007, 6:27 AM by docdawson. 1 replies.
Sort Posts: Previous Next
  •  11-15-2007, 4:26 AM 36553

    REGEX solution for a URL

    Hi All,

    I am trying to find out a regex pattern for a particular URL type, to extract a particular piece of information from that URL.

    I am working on JAVA and the URL sample goes like this

    lid={ifpdf:92000000000012345}{ifnonpdf:33000000000012345}&cadid=12345} 

    I am trying to search for the italicized part of the URL "ifpdf:92000000000012345" This number is to be parsed out from such a URL pattern.

     Can soemone please suggest me some solution of what combination of regex constructs i need to use.

     I have constructed a similar one but little different which is working fine but this one i am unable to make.

    Any help in this direction is much appreciated..

     

    Thanks

    Kedar

    Filed under: , , ,
  •  11-15-2007, 6:27 AM 36556 in reply to 36553

    Re: REGEX solution for a URL

    Can you please explain a little more about the terms of your task.

    if you always need the number which comes after lid={ifpdf: then the regex would be very easy, but I can`t imagine that this is your only source string.

    Do you got more examples? Show us some strings where the regex should not match. 

View as RSS news feed in XML