You are here: Re: ereg_replace « PHP Programming Language « IT news, forums, messages
Re: ereg_replace

Posted by Mark ??;-\) on 11/23/05 04:42

This will find the files you specified:
(^[A][B][C]) ([1-9a-zA-Z]*)

I tried finding the right substitution syntax, but didn't really find a
solution. It looks like maybe using tr/ to translate between the UC and LC
would be a start. Look at http://www.comp.leeds.ac.uk/Perl/sandtr.html
Unfortunately I don't have BASH on this computer so I can't really work more
on this.

-Mark


"Tomek Toczyski" <guf@kajak.org.pl> wrote in message
news:Pine.GSO.4.61.0511230246330.28301@ztest...
>I would like find all occurences of "ABC" which are not followed by "123"
> and replace them with "abc". For example:
> "ABC dd" -> "abc dd"
> "ABC123" -> "ABC123"
> "ABC 123" -> "abc 123"
>
> Give me a recipe, please. I've spent 2 hours googling for it.
>
>
> -tt.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация