Specific regex query -


i have searched regex answers , none seem address query have. i'm using specific regex product can search through text , discard specific part of line in email message.

in instance, have line can search through regex , discards 'subject: '

i need then;

  1. discard second part of field
  2. then select actual text (which passed seperate process)

for instance, check (for test have written) gets 'thisserver blah blah' text- passed next part of process, discards 'subject: ' (which automatic) , discards 'alert open';

(?:alert open: ([^\n\r]*)) 

subject: alert open: thisserver blah blah

so, works , thisserver blah blah passed next part..


i have new case i'm trying write for;

subject: thing having problems

  1. 'subject: ' automatically discarded, there no need worry it
  2. i want discard ' having problems'

which leaves..

  1. 'this thing' passed next stage.

((?: having problems)) - discards ' having problems'. subject: taken care of, need select 'this thing' can passed next part, can't work out how it..

in field mapping, add mapping subject (or body if relevant) looks subject: (.*?) having problems , put in field want assign. see this image might help


Comments

Popular posts from this blog

python - Selenium remoteWebDriver (& SauceLabs) Firefox moseMoveTo action exception -

html - How to custom Bootstrap grid height? -

transpose - Maple isnt executing function but prints function term -