Results 1 to 5 of 5

Thread: representing a string with Regular Expressions (resolved)

Threaded View

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 2003
    Posts
    149

    representing a string with Regular Expressions (resolved)

    As part of an assignment I am trying to represent a string with RE which stands for regular expressions. The string is delimited by double quotes. It can have newline characters at the end. I was wondering if anyone might give me some feedback on if its correct and how to handle the newline characters.

    I have this so far:

    String Literals with RE
    ( " ) ( 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 ) | ( a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | t | u | v | w | x | y | z ) ( 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 )*
    ( a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | t | u | v | w | x | y | z )* (newlines will go here) (")

    Anyone know how I can put in newlines and if the rest is correct?
    Last edited by abcdefg; Feb 3rd, 2004 at 02:03 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width