Jump to content
UBot Underground

Recommended Posts

Hello guys, i'm having some problems when trying to get some numbers from a text using regex, this is the text: 

 

N/ICompanySearch Main SearchReset SearchInitial RegistrationExcel LawsuitPdfExcel ConsolidatedAlter ColumnsSort Column(1 of 151)pp12345678910pp50100150 ID Lawsuit Number Company Party Opposing Party State External ID File Plaintiff Defendant District Court

 

i'm trying to capture (1 of 151) using this regular expression:

 

\(([0-9]?){3} of ([0-9]?){3}\)

 

The funny part is that when I use the regex editor to test, it works correctly, but not when i run the code using the function $find regular expression.

Link to post
Share on other sites

try

alert($find regular expression("N/ICompanySearch Main SearchReset SearchInitial RegistrationExcel LawsuitPdfExcel ConsolidatedAlter ColumnsSort Column(1 of 151)pp12345678910pp50100150 ID Lawsuit Number Company Party Opposing Party State External ID File Plaintiff Defendant District Court","\\(\\d+ of \\d+\\)"))

  • Like 1
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...