0

I'm sure this has been asked before, but I could not find an answer for this specific use case and regex is so confusing to me that unless it is solving exactly the same thing I can't seem to apply the answer to my issue.

I have html source that looks like this

...

 'https://actiona6.criflending.com/Core/WebServices/PartyDetails.asmx';asm.IsTwnsEnabled = false;asm.pPrintCreditFileURL = 
'https://actiona6.criflending.com/Core/CreditHistoryDebtPad/PrintCreditFile.aspx';asm.appID = 128476;asm.PartyTypeEnum = {Individual: 8,Company: 3,Channel: 2}
;asm.parties[67268] = new asm.party(67268, 8, '2019-11-18T17:15:32.357',
 2, false, false);$('[id*=lnkPrimaryApplicant]').data('pID',67268);asm.parties[67271] = 
new asm.party(67271, 8, '2019-11-18T17:17:43.913', 2, false, false);asm.parties[11883] = new asm.party(11883, 2, '0001-01-01T00:00:00.000');});//]]>
</script>

...

Basically I need to get that primary ID, I believe the pattern will look like this always:

$('[id*=lnkPrimaryApplicant]').data('pID',67268)

Anyone know how I can extract just this number?

amchugh89
  • 1,068
  • 13
  • 27
  • It looks like you are looking to create a regex, but do not know where to get started. Please check [Reference - What does this regex mean](https://stackoverflow.com/questions/22937618) resource, it has plenty of hints. Also, refer to [Learning Regular Expressions](https://stackoverflow.com/questions/4736) post for some basic regex info. Once you get some expression ready and still have issues with the solution, please edit the question with the latest details and we'll be glad to help you fix the problem. – Wiktor Stribiżew Nov 10 '20 at 18:43

0 Answers0