FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » help with preg_match pattern
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
help with preg_match pattern [message #184747] Tue, 28 January 2014 18:53 Go to previous message
bill is currently offline  bill
Messages: 310
Registered: October 2010
Karma:
Senior Member
Yup managed to confuse myself reading the manual.

I have an numerically indexed array that consists of fragments of
a prescription.
Rarely I may have an array element in the form of:

[Alert: This Rx was initially created on 1/27/2014.]

I want to delete those array elements (probably using
array_slice), but first I need to figure out which array elements
match the pattern. The date may change and will use one or two
digit days and months.
I could just look for the first part of the element, but I want
to be prepared for the people upstream (over whom I have no
influence - different company) to add other Alerts, some of which
I will want to ignore, some of which I may want to keep.

I am certainly open to other suggestions.

bill
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: I Need to search over 100 largeish text documents efficiently. What's the best approach?
Next Topic: Phonegap upload issue with PHP server
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 30 11:49:03 GMT 2024

Total time taken to generate the page: 0.05862 seconds