473,473 Members | 1,807 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Ignoring non-alphanumeric characters...

OK, here's possibly a weird one. Is there any way to do string comparisons
and ignore all non-alphanumeric characters? For instance, check "foobar" and
have it match an existing record of "f$#!oo B(a)*R".

- Daniel
Jul 20 '05 #1
3 3619
"Daniel Tonks" wrote:
OK, here’s possibly a weird one. Is there any way to do string
comparisons
and ignore all non-alphanumeric characters? For instance, check
"foobar" and
have it match an existing record of "f$#!oo B(a)*R".

- Daniel


check for "mysql regex" on search engines.
http://dev.mysql.com/doc/mysql/en/Regexp.html

--
http://www.dbForumz.com/ This article was posted by author's request
Articles individually checked for conformance to usenet standards
Topic URL: http://www.dbForumz.com/mySQL-Ignori...ict137692.html
Visit Topic URL to contact author (reg. req'd). Report abuse: http://www.dbForumz.com/eform.php?p=460751
Jul 20 '05 #2
"steve" <Us************@dbForumz.com> wrote in message
news:41**********@news.athenanews.com...
"Daniel Tonks" wrote:
> OK, here’s possibly a weird one. Is there any way to do string
> comparisons
> and ignore all non-alphanumeric characters? For instance, check
> "foobar" and
> have it match an existing record of "f$#!oo B(a)*R".
>
> - Daniel


check for "mysql regex" on search engines.
http://dev.mysql.com/doc/mysql/en/Regexp.html


I looked into that, but it only seems useful to specific pattern matching -
I can't find any way to selectively NOT match something that is unknown,
while continuing to match something else (and not have it also match normal
characters, such as "footbar"). After some Googling I found someone who
merely wanted to ignore spaces, but alas it looks like even that cannot be
done with mere database commands.

So I many have to go the inefficient route: retrieve the entire column and
do my own processing.

- Danniel
Jul 20 '05 #3

"Daniel Tonks" <dtonks@sunstormADD-DOT-COM> skrev i en meddelelse
news:41**********************@authen.newsreader.vi si.com...
"steve" <Us************@dbForumz.com> wrote in message
news:41**********@news.athenanews.com...
"Daniel Tonks" wrote:
> OK, here's possibly a weird one. Is there any way to do string
> comparisons
> and ignore all non-alphanumeric characters? For instance, check
> "foobar" and
> have it match an existing record of "f$#!oo B(a)*R".
>
> - Daniel


check for "mysql regex" on search engines.
http://dev.mysql.com/doc/mysql/en/Regexp.html

So I may have to go the inefficient route: retrieve the entire column and
do my own processing.


If you do this search often, make an extra column and store the "cleaned"
version of the column.

Leif
Jul 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Douglas F. | last post by:
I have a download.php that handles some form posts from a html page. It attempts to use Header(Location: ......) to download a file. It works when out of ssl, but when under ssl, I get the...
5
by: Robert Downes | last post by:
I'm using the following in a page that I'm testing in Mozilla: p.actionLinkBlock {border: 1px #000000 dashed; padding: 0.2cm; width: auto} But the dashed border is extending to the right-edge...
2
by: Paul Bramscher | last post by:
What are the mechanisms to make words like a/an/the in text and varchar character fields ignored when performing SELECT and utilizing ORDER BY in SQL queries? I've done some hunting around into...
10
by: lac | last post by:
Hello all, I am trying to make horizontal bars of different lengths. I tought either SPAN or DIV would work but it only works for IE. I have a small example at: http://sedivy.com/test.htm Let...
2
by: Vladi | last post by:
Experience is highly requested. I can't find solution for the following problem: I am making VBA code for moving/modifying data from "old" tables into "new" ones. In fact, this is part of the...
4
by: Srikanth | last post by:
Hi Can any one say how to check a hashtable by ignoring the case of key supplied. I want the following requirement It should not allow the user to do the following Hashtable table = new...
3
by: CJ Taylor | last post by:
Another quesiton, I have a form, with a control on it that has a handler for control.validated event. Now, if that control has focus, and I click the close button the validation event fires.....
2
by: Daniel Gaudreault | last post by:
One of our developers came across the fact that postgres is ignoring spaces when sorting results from a query. We are using PGSQL 7.3.4 on the backend. Is there something that needs to be set...
5
by: BACON | last post by:
I'm just starting the process of reorganising my modest little website and cleaning up all the HTML, and the logical place to begin was with the homepage. I made a simple little ASP.NET control...
0
by: mrafi | last post by:
Hey All, I am working with numpy I have a data set with a lot of nan values, and i want to calculate standard deviation is there a direct function to do it for example nansum(or something like...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.