Producing core words with RegExps

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
visionmaster
Forum Contributor
Posts: 139
Joined: Wed Jul 14, 2004 4:06 am

Producing core words with RegExps

Post by visionmaster »

Hello,

To produce a core word (street name read out of a database) I have a source file, each line holds a string. These strings represent string-parts that can be eliminated from the street name.

Now, I want to produce a core word out of the street name read out of the database using the source file (reference file). Besides that I want to get rid of street numbers, that are for later reasons not of interest at all.

=> How do I do that with RegExps?

Thanks,
visionmaster
Post Reply