help for regex line (1 Viewer)

Schenk2302

Portal Pro
September 12, 2008
50
14
Bonn
Home Country
Germany Germany
hi,

could anyone help here please:)

Here's the regex:

<br>(?<movieGenre>.+)\|(?<movieLand>.+)\|(?<movieYear>.+)</td>

The text:

<br> Komödie&nbsp;|&nbsp; USA&nbsp;|&nbsp; 2007 </td>

in use this regex finds everything right but with the the whitespaces, what i have to do to find without the whitespaces.

thanks in advance

Schenk
 

fforde

Community Plugin Dev
June 7, 2007
2,667
1,702
43
Texas
Home Country
United States of America United States of America
Your existing regex does not match the sample string you gave. Can you give a more complete sample of the text you're trying to match?

EDIT: Oops, nevermind. one sec...
 

Schenk2302

Portal Pro
September 12, 2008
50
14
Bonn
Home Country
Germany Germany
it should output

Genre: Komödie
Land: USA
Year: 2008

but gives: Genre: Komödie &nbsp;

Thanks
 

fforde

Community Plugin Dev
June 7, 2007
2,667
1,702
43
Texas
Home Country
United States of America United States of America
Code:
<br>\s*(?<movieGenre>.+)(?:&nbsp;|\s)+\|(?:&nbsp;|\s)+(?<movieLand>.+)(?:&nbsp;|\s)+\|(?:&nbsp;|\s)+(?<movieYear>.+)(?:&nbsp;|\s)+</td>
 

Users who are viewing this thread

Top Bottom