[Virtuoso-users] Regexp_replace pattern matching with variable substitution

2011-10-03 Thread Peter Secomb
Hi everyone, I'm using Virtuoso regexp_replace to strip newline and whitespace characters from an xml file before passing it to xtree_doc. My pattern to match is: 'n[0-9]:(\n|\s)' I need to preserve the value matched by [0-9] in the replacement string. eg:

Re: [Virtuoso-users] Regexp_replace pattern matching with variable substitution

2011-10-03 Thread Patrick van Kleef
HI Peter, I'm using Virtuoso regexp_replace to strip newline and whitespace characters from an xml file before passing it to xtree_doc. My pattern to match is: 'n[0-9]:(\n|\s)' I need to preserve the value matched by [0-9] in the replacement string. eg: