CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Advanced: Re: [rfransix] Matching Unique Field with Action: Edit Log



Karazam
User

Mar 8, 2011, 12:09 PM


Views: 5867
Re: [rfransix] Matching Unique Field with Action


Quote
this code: perl -pi.orig -e "s/(\w+,?)\s+(?:\w\.?)+[,.]+\s+(.*)/$1 $2/;" in.file removes all fields with a period.


That's really odd, for me it only touches the second field.


(This post was edited by Karazam on Mar 8, 2011, 12:10 PM)


Edit Log:
Post edited by Karazam (User) on Mar 8, 2011, 12:10 PM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives