PEAK XOOPS - select news by keywords, filter , ... in englishin japanese

select news by keywords, filter , ...

  • You cannot open a new topic into this forum
  • Guests cannot post into this forum
Previous post - Next post | Parent - Children.1 | Posted on 2006/6/4 5:01
irmtfan  »°Åù·³Áâ   Posts: 96
see for example i want to get ONLY the news contain "harry potter" word from a site.

is this possible to wrote some words and just get the news that contain the exact word?

i see this feature in some site but i dont know how they do this.
Votes:3 Average:10.00
Previous post - Next post | Parent - Children.1 | Posted on 2006/6/4 5:03
GIJOE  ÀèǤ·³Áâ   Posts: 4110
It is just an issue of perl regex.

eg.
/harry\s*potter/i
Votes:8 Average:10.00
Previous post - Next post | Parent - Children.1 | Posted on 2006/6/4 5:14
irmtfan  »°Åù·³Áâ   Posts: 96
AHA
very good point.
i want to ask about that rows too.
so those rows in the site are using for this purpose?
could you get me a document for that?

i dont know why you use \s and /i in your string.

of course it seems \s means space.

but what is "*" and what is "i"?

Votes:8 Average:10.00
Previous post - Next post | Parent - Children.1 | Posted on 2006/6/4 5:20
GIJOE  ÀèǤ·³Áâ   Posts: 4110
read a page for regular expression than ask it to me

\s is not a space.
a set of blank characters

i means ignore case.
can hit
 harry potter
 Harry Potter
 HARRY POTTER

* means number 0-infini
can hit
 harrypotter
 harry potter
 harry     potter
Votes:8 Average:10.00
Previous post - Next post | Parent - Children.1 | Posted on 2006/6/4 23:06
irmtfan  »°Åù·³Áâ   Posts: 96
is this work for utf-8 strings?
i try to use some persian words but it failed to find any record
Votes:8 Average:10.00
Previous post - Next post | Parent - Children.1 | Posted on 2006/6/6 18:23
GIJOE  ÀèǤ·³Áâ   Posts: 4110
Of course, It will work with UTF-8 encoding.

Check the regex pattern and titles in the feeds.
Votes:0 Average:0.00
Previous post - Next post | Parent - Children.1 | Posted on 2006/9/25 0:17
hooperman  ÆóÅùʼ   Posts: 2
Hi all great module and has always worked well on my site
I'm hoping now to streamline it

re Extract with title string

Would love to be able to extract 2 or more words from the title string and am lost as to how to go about it

Any ideas would be most welcome
Votes:0 Average:0.00
Previous post - Next post | Parent - Children.1 | Posted on 2006/9/30 4:36
GIJOE  ÀèǤ·³Áâ   Posts: 4110
Just set it with "perl regular expression"

Two words?

eg) "foo" or "bar" with ignoring case

/(foo|bar)/i
Votes:0 Average:0.00
Previous post - Next post | Parent - No child | Posted on 2006/10/6 4:48
hooperman  ÆóÅùʼ   Posts: 2
Thanks GIJOE
I'll give that a go
Votes:0 Average:0.00

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!