in reply to Regular Expressions and Variables

Notice you get one goodbye for every letter in "hello"

it's doing exactly what you are asking! it's replacing every letter within the brackets (see Character Class) with the substitution string.

Time to bone up on Regular Expressions!

on the search....I disagree. but I suppose everyone's mileage varies...

Replies are listed 'Best First'.
Re: Re: Regular Expressions and Variables
by skazat (Chaplain) on Feb 13, 2001 at 03:53 UTC

    I understand what the reg ex was doing, I just wanteded it to do what I was saying, replace this with that. A bif of voodoo being done instead. It almost makes sense to make an extra step to allow reg ex's to honor the special reg ex syntax in variables, but hey, I didn't make the language,

    I think the search can be streamlined, I mean, why do I need to see every reply to a question? The search results will look all the same, like this:

    regular expressions and substituting in variables. * Re: regular expressions and substituting in variables. * Re: regular expressions and substituting in variables. * Re: Re: regular expressions and substituting in variables. * Re: Re: regular expressions and substituting in variables. * Re: Re: Re: regular expressions and substituting in variables. * Re: Re: Re: Re: regular expressions and substituting in variables +.

    Just give me the root one. Sometimes answers don't make sense without the question - this aint jeopardy.

     

    -justin simoni
    !skazat!

      If you're using Super Search, and only want to see root nodes, check all the section boxes except Note. All response nodes end up in the Note category. This has the advantage of allowing a search on only root nodes, but has the disadvantage of not allowing searches on root and response nodes within a specific category.

      I think the best of both worlds be having response nodes in the same category as their root nodes, with a new checkbox in Super Search for specifying root nodes only.

        i probably had that coming to me "Use the super search!" (of course) Then again, should I have to read a manual to use a site? Its a fine line between usability and having cool stuff for people to use. I think its quite alright on this site, people here are used to fiddling with stuff, and actually would feel alienated if they couldn't :) There's some rough corners on perlmonks, that right nav bar has a tendency to disappear off my screen and I need to scroll to see the menu. Has anyone offered to do a redesign? (att: vroom) I'd love to take a whack at it, eat my own words :)

        anyhoo, thanks everyone for your help, worked out great and saved mi day.

         

        -justin simoni
        !skazat!