Hi,

 

I have another problem with regular expression, so I begin to ask me if I 
understand how it works.

 

The other problem is that I have this string by example “Article 6” and I just 
want to display the number “6” so I do this :

 

map:amendement_sujet a d2rq:PropertyBridge;

  d2rq:belongsToClassMap map:Amendement;

  d2rq:property oan:amendementConcerne;

  d2rq:column “amendement.sujet”;

  d2rq:valueRegex “[0-9]”.

 

I always “Article 6” that appears instead of “6”. So I still have the previous 
problem more this.

 

Any idea about this two things ?

 

Best.

 

Julien.

De : Julien PLU [mailto:[email protected]] 
Envoyé : samedi 2 avril 2011 13:46
À : [email protected]
Objet : Regular expression and D2RQ

 

Hi,

 

I have a problem to extract parts of a string. I explain that I have this type 
of string in one of the following fields in my database:

 

a:4:{i:0;s:129:"28  espace Coralium Route nationale 1 Kawéni,  BP 424 97600 
Mamoudzou Téléphone : 02 69 61 18 71 Télécopie : 02 69 61 18 72 ";i:1;s:44:"1  
carrefour de la Liberté 97600 Mamoudzou ";i:2;s:64:"Assemblée nationale 126 rue 
de l'Université 75355 Paris 07 SP ";i:3;s:0:"";}

            

And I'd like to extract the two parties which are:

 

28  espace Coralium Route nationale 1 Kawéni,  BP 424 97600 Mamoudzou

 

and

 

1 carrefour de la Liberté 97600 Mamoudzou

 

and

 

Assemblée nationale 126 rue de l'Université 75355 Paris 07 SP

 

But that's not all, I would like for each of the parties that I created a 
property value "v: workAdr". So in this case I should have to see under D2R two 
occurrences of this property. If I have two parties that are extracted so I 
should have two occurences of this property and so on.

 

To do so I use "d2rq: valueRegex" with the regular expression:

 

#”(.*?)”#

 

But I get an error when launching the server because of my regex.

 

Any idea how to solve this problem?

 

Best.

 

Julien.

------------------------------------------------------------------------------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________
d2rq-map-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/d2rq-map-devel

Reply via email to