C
Covington Bradshaw
Hi every one,
I have a basic regular expressions question.
It goes like this: How do I extract a sequence of
@-delimited characters from a text?
Example: @{1}.*?@{1}
Will give:
123456789abcdefhghij
when applied to the following text:
@123456789abcdefghij@987654321stuvwxyz@
However I am trying to build a regular expression
for a more complex case where the double @@, which
is the escape character for @, can also be handled.
Consequently I need to know how to extract
123456789@@abcdefhghij
from
@123456789@@abcdefghij@987654321@@stuvwxyz@
using regular expressions.
Note the expression @([^@]|((@@)*))@ was suggested in a
previous reply but this one returns a false positive
on the following text:
@123456789@@abc
by returning the value:
@123456789@
Anyone has a clue?
Thanks
I have a basic regular expressions question.
It goes like this: How do I extract a sequence of
@-delimited characters from a text?
Example: @{1}.*?@{1}
Will give:
123456789abcdefhghij
when applied to the following text:
@123456789abcdefghij@987654321stuvwxyz@
However I am trying to build a regular expression
for a more complex case where the double @@, which
is the escape character for @, can also be handled.
Consequently I need to know how to extract
123456789@@abcdefhghij
from
@123456789@@abcdefghij@987654321@@stuvwxyz@
using regular expressions.
Note the expression @([^@]|((@@)*))@ was suggested in a
previous reply but this one returns a false positive
on the following text:
@123456789@@abc
by returning the value:
@123456789@
Anyone has a clue?
Thanks