1

I am trying to get a regular expression for text, decimals and decimal numbers. The expression must match all at once.

The main problem is that I had to write an Analyzer for Zend_Search_Lucene in order to be able to search for decimal digits. Right now I can only search for texts and numbers. So I guess it to match decimal numbers to make them tokens and thus the regular expression in question.

Charles
  • 50,943
  • 13
  • 104
  • 142
burntblark
  • 124
  • 1
  • 4

1 Answers1

3

Okay now i feel stupid but anyways. I finally got what I wanted. This, [a-zA-Z0-9.]+ did the trick. imagine how short that was.

burntblark
  • 124
  • 1
  • 4