Partial Pattern Matching - preCharge Forums
It shows that you are unregistered. Please register with us by clicking Here
preCharge Forums


Nav Green LeftNav Right
preCharge Forums > Website Design & Development > Programming > Perl » Partial Pattern Matching


Reply
Tcat Right
 
LinkBack Thread Tools Display Modes Tcat Right
Old 07-12-2006   #1 (permalink)
andrew
Junior Member
 
Join Date: Jun 2006
Age: 28
Posts: 16
Default Partial Pattern Matching

I am trying to write a script that will allow me to do the following:

Consider a file called NUMBERS containing entries such as:

123456
123444
123476
345678
345677

The script when run will prompt the user to enter a number. Then it will look in NUMBERS file and display any numbers that contain the same numbers. For example, if the user entered 123, then the following numbers will be displayed to the screen:

123456
123444
123476

Is there a function or operator that will allow me to match in this way? Or any useful threads with anything similar would be much appreciated. Thanks.
I am trying to write a script that will allow me to do the following:

Consider a file called NUMBERS containing entries such as:

123456
123444
123476
345678
345677

The script when run will prompt the user to enter a number. Then it will look in NUMBERS file and display any numbers that contain the same numbers. For example, if the user entered 123, then the following numbers will be displayed to the screen:

123456
123444
123476

Is there a function or operator that will allow me to match in this way? Or any useful threads with anything similar would be much appreciated. Thanks.
Thanks
Andrew
andrew is offline   Reply With Quote


Old 07-14-2006   #2 (permalink)
imehesz
Senior Member
 
imehesz's Avatar
 
Join Date: Jul 2006
Age: 30
Posts: 258
Default

yes, you can find some useful functions in php such as:

eregi
__________________
--
iM
imehesz is offline   Reply With Quote

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
What is partial Assembly references? agaba175 .NET 0 08-01-2006 04:59 PM
Matching Avatar/Signature Eclair Graphics & Multimedia 6 05-16-2006 02:55 AM
[C]A Signature And A Matching Avatar Please? Geaux Graphics & Multimedia 19 10-27-2005 08:10 AM
Dot-to-dot Overlay Pattern . . . Gamelover Graphics & Multimedia 6 06-06-2005 09:53 AM


footer left
All times are GMT. The time now is 09:03 PM.

DISCLAIMER: preCharge Risk Management is not responsible for any opinions, advice or comments expressed on the preCharge Community Forums.
preCharge® is a registered trademark of preCharge Risk Management | chargeback protection | Merchant Account Blog

Powered by vBulletin
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0 RC6

Free Ringtones | Israel Basketball | Car Finance | Car Credit | Credit Cards

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49