Why are you trying to split up the \d+/\d+ capturing? Also, you have to take car with the "/" character since that can be a regular expression delimiter with the PCRE engine BBEdit uses for regular expression searching. The following regular expression matches your example:
\s*<keyframe time="(\d+\/\d+)s" value="1"/>\s+<keyframe time="(\d+\/\d+)s" value="0"/> and the replacement expression: <keyframe time="\1s" value="0.99"/>\n<keyframe time="\2s" value="0.01"/>\n performs the desired replacement with the exception of the leading white space on each line. I didn't know whether the white space was just for formatting the posting or actually something needed in your data file. On Wednesday, April 8, 2020 at 4:40:46 AM UTC-7, regis leon wrote: > > Hello > > on a XML I need to change > > <keyframe > time="650593944000/180000000s" value="1"/> > <keyframe > time="650599950000/180000000s" value="0"/> > > > > to this > > > <keyframe > time="650593944000/180000000s" value="0.99"/> > <keyframe > time="650599950000/180000000s" value="0.01"/> > > > > But I need to keep those values between " " the same for all > > because it can be like this > > > <keyframe > time="650023374000/180000000s" value="1"/> > <keyframe > time="650029380000/180000000s" value="0"/> > > > > > I'm able to find all those line by > > <keyframe time="(\d+)/(\d+)s" value="1"/>\n > > <keyframe time="(\d+)/(\d+)s" value="0"/> > > but if I try to replace by > > <keyframe time="\1/\2s" > value="0.99"/>\n > <keyframe time="\3/\4s" value="0.01"/> > > I can't keep those values between " " > > > Help > -- This is the BBEdit Talk public discussion group. If you have a feature request or need technical support, please email "[email protected]" rather than posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit> --- You received this message because you are subscribed to the Google Groups "BBEdit Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/bbedit/acc26d83-8db8-47fe-872c-67c2dda9d35b%40googlegroups.com.
