On 4/12/20 at 10:17 AM, b...@cruzio.com (Bruce Van Allen) wrote:
Try this:

ADDED: I meant to say you can do it all in one "Replace All" step.

Find:
U(?=[^a-z])|(U(?=[ACGT]+?))

Replace:
\1T

The first part U(?=[^a-z0-9]) is to eliminate the 'U' in the '>' line. NOTE: this assumes that those 'U's are always followed by a lower-case letter or a number.

The second part finds any 'U' followed by one or more of any of 'A, 'C', 'G', or 'T'.

Without that first part, the second part of the match will catch all but a 'U' at the end of the line.

HTH
--

  - Bruce

_bruce__van_allen__santa_cruz__ca_

--
This is the BBEdit Talk public discussion group. If you have a feature request or need 
technical support, please email "supp...@barebones.com" 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 bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/r480Ps-10146i-07A2C65D51E74D949201FE05FE1FBD87%40Forest.local.

Reply via email to