Regular Expressions within metadata variables
Posted: Mon Nov 24, 2014 12:09 pm
dear all,
I'd like to capture the inital Chars from a string like "Jan Wolk" and glue it to a Ordnernummer catched out of a JDF file.
[Metadata.Text:Path="/jdf:JDF/@JobID",Dataset="Jdf",Model=JDF][Metadata.Text:Path="/jdf:JDF/jdf:AuditPool[1]/jdf:Created/@Author",Dataset="Jdf",Model="JDF",Search="[A-Z]{1}"][Metadata.Text:Path="/jdf:JDF/jdf:AuditPool[1]/jdf:Created/@Author",Dataset="Jdf",Model="JDF",Search="s[A-Z]{1}"]
this returns a string like "1234567 JW" but i need it without whitespace. I playes around with capture groups and anchors and so on, but i couldn't get rid of the whitespace...
Unfortuantely poitive lookbehinds are not supported by javascript, so are there any workarounds?
thank you in advance!!
regards, Jan
I'd like to capture the inital Chars from a string like "Jan Wolk" and glue it to a Ordnernummer catched out of a JDF file.
[Metadata.Text:Path="/jdf:JDF/@JobID",Dataset="Jdf",Model=JDF][Metadata.Text:Path="/jdf:JDF/jdf:AuditPool[1]/jdf:Created/@Author",Dataset="Jdf",Model="JDF",Search="[A-Z]{1}"][Metadata.Text:Path="/jdf:JDF/jdf:AuditPool[1]/jdf:Created/@Author",Dataset="Jdf",Model="JDF",Search="s[A-Z]{1}"]
this returns a string like "1234567 JW" but i need it without whitespace. I playes around with capture groups and anchors and so on, but i couldn't get rid of the whitespace...
Unfortuantely poitive lookbehinds are not supported by javascript, so are there any workarounds?
thank you in advance!!
regards, Jan