Pages: [1]
  Print  
Author Topic: REGEX: Search two fields in WV's "text_query"?  (Read 1307 times)
mdc
Jr. Member
**
Posts: 60


« on: March 18, 2009, 12:36:09 PM »

My text input format like this:

-------------
TITLE="xxxxxx"
...
...
ABSTRACT="yyyyyy"
...
...
---------------

To query the TITLE, I use this: TITLE="(.*)" $1

My problem now is I want to extract both the TITLE and the ABSTRACT. What is the expression for this?

thanks,
Matthew
Logged
Ingo Mierswa
Administrator
Hero Member
*****
Posts: 1221



WWW
« Reply #1 on: March 23, 2009, 12:29:53 PM »

Hi,

not sure if I got this right but anyway. I assume that the text is stored in a single attribute. Then just perform an AttributeCopy and use the Replace operator twice with different capturing groups. Or you replace it within a replace operation and two capturing groups $1 and $2 followed by the new split operator.

Cheers,
Ingo
Logged

Did you try our new Marketplace? Upload or download new Extensions, add comments, and organize your operators. Have a look at  http://marketplace.rapid-i.com
Pages: [1]
  Print  
 
Jump to: