Hi Chris,
Yes, you're right. I got it working, but for future reference here's what I
was trying to do...I have many of these elements:
*Macbeth5.15.1.64*
Both and contain act/scene/line number info and either one
other the other is incomplete (the one with two numbers) and I want to keep
Hi Jean,,
Thank you for the detailed explanation! This seems to find every
three-number permutation wrapped in ** or **, but I'm looking to
remove two-number permutations. I figured out that moving the second +
symbol does the trick.
Thanks again!
On Saturday, May 22, 2021 at 10:42:18 AM
On 05/22/2021, at 10:50, severdia mailto:sever...@gmail.com>> wrote:
> I can't seem to figure out a way to find and replace some numbers using Grep.
> This is what I have.
>
> 2.22.2.93
>
> I have many cases where there are 3 numbers separated by two periods wrapped
> in (like this: 2.2.309)
Hi Ron,
Here is a regular expression that should match your pattern:
<(loc2?)>[1-5](?:\.\d+)+
The same but commented:
(?x)(?# allow comments and whitespace)
< (?# start of opening tag)
( (?# start of capturing parenthesis)
loc
Hi,
I can't seem to figure out a way to find and replace some numbers using
Grep. This is what I have.
*2.22.2.93*
I have many cases where there are 3 numbers separated by two periods
wrapped in ** (like this: *2.2.309*) as well as the example
above with 2 numbers separated by 1 period