[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] regexp question
- Subject: [ale] regexp question
- From: greg at turnstep.com (greg at turnstep.com)
- Date: Wed Oct 1 18:14:08 2003
- In-reply-to: <000501c38866$f759b900$f701960a@Vaio01>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
> I have the book and the example is much more elaborate than I need. Here
> is an example.
> The string I have: Now is the time
> The string I want: Now is#the time
> I only need to replace the second occurrence with a #.
s/( [^ ]+) /$1#/;
- --
Greg Sabino Mullane greg at turnstep.com
PGP Key: 0x14964AC8 200310011813
-----BEGIN PGP SIGNATURE-----
Comment: http://www.turnstep.com/pgp.html
iD8DBQE/e1HDvJuQZxSWSsgRAt/9AJ4jbgMB8gihTJQStWS47YgLHq2gqgCgwGK9
qs7+Myk4G+WgPS7F19OikH0=
=/riw
-----END PGP SIGNATURE-----