[Users] Regular Expressions
Jeff Williams
jeffw at globaldial.com
Fri Jul 14 10:10:12 CEST 2006
Ricardo Martinez wrote:
>
> Hello List.
> I'm trying to build a regular expresion that match the next
> line :
>
> Param1 : E384AFC2-529C-4AA1-AE16-273A3C7DD889
>
> I mean : [8 characters from 0 to 9 and A to D]-[4 characters from 0 to
> 9 and A to D]-[4 characters from 0 to 9 and A to D]-[4 characters from
> 0 to 9 and A to D]-[12 characters from 0 to 9 and A to D]
>
> Any help?
>
Maybe /^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/
>
> The textops re are like the "linux vi" re?
>
Textops appears to use posix regular expressions. I'm not sure what vi uses.
Jeff
More information about the sr-users
mailing list