[ale] regexp question
greg at turnstep.com
greg at turnstep.com
Wed Oct 1 18:14:08 EDT 2003
-----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-----
More information about the Ale
mailing list