in reply to Re^2: How to tokenize string by custom dictionary? (+code)
in thread How to tokenize string by custom dictionary?

  1. you have to escape them use quotemeta or \Q respectively

  2. you can either increase buffer-size for trie optimization (see ${^RE_TRIE_MAXBUF} in perlvar) or always test in chunks of names (like 10000?). I recommend a combination of both.

  3. > we can not distinguish the ambiguous name

    sorry I don't understand.

Cheers Rolf

( addicted to the Perl Programming Language)

Replies are listed 'Best First'.
Re^4: How to tokenize string by custom dictionary? (+code)
by infantcoder (Novice) on Nov 07, 2013 at 03:30 UTC

    Thank you very much, @Cheers Rolf. It wroks.

    Come to Beijing, Just call me, beers waitting for you. ^_^

      > Come to Beijing, Just call me, beers waitting for you. ^_^

      sure, just message me me your phone number ... ;-)

      Cheers Rolf

      ( addicted to the Perl Programming Language)