Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

regex help

Status
Not open for further replies.

rigstars2

Instructor
Dec 18, 2011
64
US
need help with my regex, it is only matching the first line. I need it to match all the entries below.

regex
-----
/bsordertrack\s*[Cannot update assessment event for cannot find Pearson Order Removed empty].*\n|[PEARSON0109]/

matching text
-------------
bsordertrack cannot find Pearson Order
bsordertrack Cannot update assessment event for
bsordertrack Removed empty
bsordertrack Cannot update assessment event for
bsordertrack Removed empty
bsordertrack cannot find Pearson Order
bsordertrack Removed empty

Thanks in advance - Jimmy

 
Add the 'global' flag/modifier /g to the pattern.




Chris.

Indifference will be the downfall of mankind, but who cares?
Time flies like an arrow, however, fruit flies like a banana.

Never mind this jesus character, stars had to die for me to live.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top