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

Home » Imported messages » comp.lang.php » change a string where have number after a word
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
change a string where have number after a word [message #180341] Tue, 05 February 2013 13:21 Go to previous message
nawfer is currently offline  nawfer
Messages: 34
Registered: August 2011
Karma:
Member
"arts 4, tested 4, passenger 2"

"arts 4, tested 4, passenger 2, arrived 2"

"arrived 2, tested 4, passenger 2, arts 4"

how can change this type of string for to have only the word with 4 at the
end?


so
"arts 4, tested 4"
first steps taht remove the words with 2 at the end;
and 2nd steps for to have
"arts, tested"

and if with regex the solution is also more fast
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: script php with <img scr...../>
Next Topic: classes in PHP
Goto Forum:
  

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

Current Time: Fri Nov 22 06:19:37 GMT 2024

Total time taken to generate the page: 0.04072 seconds