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

  • SEARCH
  • Home
  • 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 8221783
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T14:03:11+00:00 2026-06-07T14:03:11+00:00

In MS Project, tasks can be linked to multiple other tasks which can reside

  • 0

In MS Project, tasks can be linked to multiple other tasks which can reside in separate (external) project files. The only way to get a reference to these externally linked tasks is to parse out the "Predecessors" field which is a comma-separated list of links. Unfortunately, those external links can have commas in the paths, so a simple split doesn’t work.

Here is an example with 3 links, the second is external:

123FS+5d,\\server\folder, with commas\project1.mpp\456,789

For internal links, the format can be any of the following:

  • #tk
  • #tk+#d
  • #tk-#d

Where the first number is the ID, the placeholder tk can be FS, FF, SS, or SF, and the optional last part (the lag) is +/- # days.

For external links, the link information is preceded by the file name including the path, followed by a backslash. The path may be UNC (e.g. \\) or a mapped drive letter (e.g. L:\).

There can be one or more links in a field and all, some, or none can be external.

I need a regex pattern to match these lists of links.

Thank you for the assistance!

EDIT

For posterity’s sake, here’s the pattern that works best as it also matches paths from Project Server ("<>\file name\123")

(((<>\\[^\\]+\\)+)|([A-Z]:|\\)\\([^\\]+\\)+)?\d+([FS]{2}([+-]\d+d)?)?(?=,|$)

Also see How can I get the Unique ID of an External Dependency Task? for further enhancement on this regex pattern.

  • 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. Editorial Team
    Editorial Team
    2026-06-07T14:03:14+00:00Added an answer on June 7, 2026 at 2:03 pm

    Initial Answer:

    Using a modified version of the sample you provided and putting in a bunch of other things, I came up with this expression:

    ,(?=(([A-Z]:|\\)\\([^\\]+\\)+)?\d+([FS]{2}([+-]\d+d)?)?(?=,|$))
    

    It identifies a comma that is followed by one of your possible patterns, and you SHOULD be able to use it to split your stuff out (I think) – let me know if you have problems and I’ll try to help – running off to a meeting right now 😀

    EDIT:

    To match the links themselves, rather than splitting, remove the initial comma and lookahead from the expression, like so (this is often the case for converting split expressions to match expressions, but not always…):

    (([A-Z]:|\\)\\([^\\]+\\)+)?\d+([FS]{2}([+-]\d+d)?)?(?=,|$)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

A Project has multiple Tasks, which has multiple Assignments Projects (1-n) -> Tasks (1-n)
Any way to access a nested form_bulder.object? ## controller @project = Project.new @project.tasks.build form_for(@project)
EDIT: I have made a clean, new project, but still can't get it working.
How can I get the test tasks back? Backstory: I didn't start with the
I'm building a simple app, a sort of project/tasks manager where I can have
I have project model that has many tasks. Both project and tasks can have
Lets say I have a project model which has many members and many tasks.
I'm using the svncommit task from the MSBuild Community Tasks Project. Unfortunately I've got
I'm having an issue with the Attrib task from the MSBuild Community Tasks Project
What project collaboration tools do you recommend for maintaining tasks, bugs, collaborating, messaging, storing

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.