I'm not very familiar with english and still less with javascript, sorry for that.
I have lots of extracted datas in a field named LT, I need to extract a particular data from LT field in javascript, this data is a number after "Relevé N° :" or sometimes after "N° de relevé :" expression is never exactly the same.
I actually use that: record.fields.LT.substring(record.fields.LT.indexOf("relev")).slice(10, 19);
But that dont match because sometimes there is more than one space or the "R" is uppercase etc..
Some help would be appreciated ;-)
Thanks Bryan
EDIT: thank you both for your answers, here is some screenshots for a better understanding 1
I try first suggestion and it ask for missing ; and ) but when i add it, nothing remain in field as you can see on picture2 2
and when i try second answer, there is a syntax problem(seems to be the "(?:")