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;
- discard second part of field
- 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
- 'subject: ' automatically discarded, there no need worry it
- i want discard ' having problems'
which leaves..
- '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
Post a Comment