On another forum, a user asked how to turn this string:
FirstName LastName <[EMAIL PROTECTED]>
into this string:
[EMAIL PROTECTED]
I was able to come up with:
<cfset email = reReplace(left(email, len(email)-1), '(^.*<)', '', 'all')>
I feel a little cheesy using the left() function to remove that last
bracket, as I'm sure there must have been a way within the same regex.
I tried a variety of things, such as adding .$ and even the literal > to the
_expression_ above, but I assume that means it was looking for that _expression_
as an _expression_ itself. But there has to be a way to say, replace (this
exp) AND (that exp)? or would it just be a case of nesting reReplace()
functions?
Charlie
-still trying to get a handle on regex
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
- The other shoe drops Howard Fore
- Re: The other shoe drops Massimo Foti
- Re: The other shoe drops Matt Liotta
- RE: The other shoe drops Tom Kitta
- Re: The other shoe drops Matt Liotta
- RE: The other shoe drops Tom Kitta
- RE: Regex Q Charlie Griefer
- RE: Regex Q Barney Boisvert
- Re: Regex Q Charlie Griefer
- RE: Regex Q Barney Boisvert
- Re: Regex Q Dick Applebaum
- Re: Regex Q Dick Applebaum
- SOT: Mac RAM was Re: The other shoe drop... Dick Applebaum
- Re: SOT: Mac RAM was Re: The other ... Matt Liotta
- Re: SOT: Mac RAM was Re: The ot... Ben Doom
- Re: SOT: Mac RAM was Re: Th... Dick Applebaum
- Re: SOT: Mac RAM was Re: Th... Matt Liotta