Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re: Replacing parts of a string

by krujos (Curate)
on Apr 11, 2003 at 14:00 UTC ( #249888=note: print w/replies, xml ) Need Help??

in reply to Replacing parts of a string

If you always have numeric followed by alphabetic in that field how about:
UPDATE: Fixed formatting

Replies are listed 'Best First'.
Re: Re: Replacing parts of a string
by diotalevi (Canon) on Apr 11, 2003 at 14:23 UTC

    Just a word - your regex is better written without capturing. s/(?<=CalendarName=)[^&=]*/ReplacementString/. In this case I used a positive assertion so it only begins matching as it hits the end of 'CalendarName=' at which point it replaces everything that isn't an ampersand or an equal character.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://249888]
[Eily]: marto oh ok, since normally it would have been 1, which is odd as well, I didn't think this was what you were refering to
[Eily]: what? Does that mean we can't blame LanX when he's there?
[marto]: but 5 in total, is odd, where as 10 is even
[marto]: sure, we can blame LanX when he is around, but he is more likely to moan about it :P
[Eily]: there's 6 in total though :P
[Eily]: unless LanX did something to maths when I wasn't looking

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (7)
As of 2018-03-20 10:02 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (249 votes). Check out past polls.