On Thu, 26 Jul 2018, Timur Tabi wrote: > Is there a way to edit string constants? I need to change > > "NVRM: ...." > > into > > "..." > > That is, I need to remove the "NVRM: " from a string. I tried this: > > @depends on rule1@ > @@ > -"NVRM: " > +"" > > But it doesn't do anything. The easiest thing would be to use python. You can look at demos/pythontococci.cocci for an example. If you send a complete change that you would like to make, I can write an example rule. julia _______________________________________________ Cocci mailing list [email protected] https://systeme.lip6.fr/mailman/listinfo/cocci
- [Cocci] Search/replace inside string constants? Timur Tabi
- Re: [Cocci] Search/replace inside string constants? Julia Lawall
- Re: [Cocci] Search/replace inside string consta... Timur Tabi
- Re: [Cocci] Search/replace inside string co... Julia Lawall
- Re: [Cocci] Search/replace inside strin... Timur Tabi
- Re: [Cocci] Search/replace inside ... Julia Lawall
- Re: [Cocci] Search/replace ins... Julia Lawall
- Re: [Cocci] Search/replace... Timur Tabi
- Re: [Cocci] Search/replace... Timur Tabi
- Re: [Cocci] Search/replace inside ... SF Markus Elfring
- Re: [Cocci] Search/replace ins... Julia Lawall
- Re: [Cocci] Search/replace inside ... SF Markus Elfring
