Jump to content

reg-ex for MySQL query rules ?


feha

Recommended Posts

I wonder if there is a reg-ex solution for this type of rules:

Example:

Supports: AND OR NOT ( ) and phrases surrounded with double quotes "like this" - nesting is supported - spaces between keywords will default to AND.

 

This would save lot of time to get right MySQL query syntax.

 

Any tips appreciated, thank you.

 

Link to comment
https://forums.phpfreaks.com/topic/91300-reg-ex-for-mysql-query-rules/
Share on other sites

Yes, but depending on what you're doing and how much, it's best to use a combination of methods.

 

This would save lot of time to get right MySQL query syntax.

 

What do you mean by this? You can do this in MySQL: http://devzone.zend.com/node/view/id/1304

Hello again

 

Yes i know about the full text "natural" search feature ...

 

I wanted to make a parser without altering a table ... ADD FULLTEXT () ... etc

 

I think such reg-ex is almost impossible :-)

 

Second alternative would be ALTER tables and add full text feature , much faster solution + get relevance :)

 

Thank you for your tips and great answer.

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.