Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 79661
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T21:10:51+00:00 2026-05-10T21:10:51+00:00

Could someone show me a regular expression that would look through this document and

  • 0

Could someone show me a regular expression that would look through this document and select the href value of every href that has RELATION_ID on the end of it? Then if it does, I have to get the Id that is before the question mark (example href='dctm://ISDOFSDdev/37004e1f800021f3?DMS_OBJECT_SPEC=RELATION_ID‘)

Thanks!

<?xml version='1.0' encoding='utf-8'?> <?dctm xml_app='elearningContent'?> <!DOCTYPE OnlineContent PUBLIC '-//ISDOFSD//DTD Online Content//EN' 'file:C:/dmExport/New%20Folder%20(2)/ISDOFSDdev/elearningContent/OnlineContent.dtd'> <OnlineContent outputclass='Graphic Down' id='OnlineContent_955627C91D8743B98DCB8BD9BE379DE8'>     <title>Text and Popup</title>     <OnlineContentBody>         <lcInstruction id='lcInstruction_770F26218C064A84BFA1813562173970'>             <p>This is an example of a plain text screen with an attached popup.</p>             <p>                 Popups are used to display additional content in a popup window. A <xref scope='local' type='topic' format='dita' href='dctm://ISDOFSDdev/37004e1f800021f3?DMS_OBJECT_SPEC=RELATION_ID'>link is provided</xref> in the main text of the screen, which may clicked on to open a popup. A screen may contain <xref scope='local' type='topic' format='dita' href='dctm://ISDOFSDdev/37004e1f800021f4?DMS_OBJECT_SPEC=RELATION_ID'>more than one popup</xref>.             </p>         </lcInstruction>     </OnlineContentBody>     <OnlinePopup id='OnlinePopup_AFE53E2CACBF4D8196E6360D4DDB6B70'>         <title>A Popup</title>         <OnlinePopupBody>             <p>This is an example of popup content.</p>             <p>A popup may contain one or more paragraphs of text. They may also contain lists, like this:</p>             <ul id='ul_7812991BBBDD4995B7499A9557C4EA9C'>                 <li id='li_E83BDB28EC494B98BFF3DD5924AF855E'>An item in a list</li>                 <li id='li_270F2A3A85BA4E6EBF98CB4023344475'>Another item in a list</li>             </ul>             <p>A numbered list is demonstrated in the second popup.</p>         </OnlinePopupBody>     </OnlinePopup>     <OnlinePopup id='OnlinePopup_5AE081BFB97043CE99F39A9E4A063332'>         <title>Another Popup</title>         <OnlinePopupBody>             <p>This is the second popup on this screen, containing a numbered list.</p>             <ol id='ol_EF18C080E7CC40B7998DEB75772367A6'>                 <li id='li_91B42F1B886B4CF887C001577C14B3F0'>An item in a list</li>                 <li id='li_95C4F32E093843FAB985A3F6981A7D07'>Another item in a list</li>             </ol>         </OnlinePopupBody>     </OnlinePopup> </OnlineContent> 
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T21:10:51+00:00Added an answer on May 10, 2026 at 9:10 pm

    You can use this regex expression:

    [a-fA-F0-9]+(?=\?DMS_OBJECT_SPEC=RELATION_ID) 

    which matches the the hex number immediately before the query string.

    I’d also suggest using XPath to do this over regex.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 67k
  • Answers 67k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer Actual code should be 1) var orders = from o… May 11, 2026 at 11:53 am
  • added an answer I think it's supposed to be: g++ *.o -L. -lboost_regex-gcc… May 11, 2026 at 11:53 am
  • added an answer Writeln is what we call a compiler 'magic' function. If… May 11, 2026 at 11:53 am

Related Questions

Could someone show me a regular expression that would look through this document and
Could someone recommend any good resources for creating Graphics User Interfaces, preferably in C/C++?
Could someone tell me what the units the SetTimeout(int) method in the ICriteria interface
Could someone write-up a step by step guide to developing a C++ based plugin
Could someone please demystify interfaces for me or point me to some good examples?
Could someone explain to me in simple terms the easiest way to change the
Could someone provide a good description of what a Lambda is? We have a
Could someone supply some code that would get the xpath of a System.Xml.XmlNode instance?
Could someone please tell me which objects types can be tested using Regular Expressions
Could someone please explain the best way to connect to an Interbase 7.1 database

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.