Regular expressions???

Last post 08-23-2005, 1:52 PM by DaveAtDigital. 1 replies.
Sort Posts: Previous Next
  •  08-19-2005, 2:24 PM 9782

    Regular expressions???

    Any suggestions how I might apply regular expressions to the contents of the editor before it gets posted to a database?
     
    I've got a couple of issues that this might fix.
     
    1. The business of converting "curly quotes" to straight quotes
    2. I need to fiddle with the paths returned by the link builder. Why? Its complicated...
    - normally on our site - mydomain.com points to myserver.com/myproject/home.aspx
    - a browser would show this as mydomain.come/myproject/home
    - we use a thing called Virtual Director so it now appears as mydomain.com/home.aspx
    - but CuteEditor doesn't work with the Virtual Director cause it seems to require the path from the server
    - so we try using the full paths to the admin pages and now the CuteEditor works again, but
    - the links CuteEditor passes are now wrong for the rest of the site cause they all include /myproject/

    I'm afraid to post examples here, I'll email you the specifics.

    I hope this makes some sense?
     
    Thanks  DOug
  •  08-23-2005, 1:52 PM 9877 in reply to 9782

    Re: Regular expressions???

    Hi Doug,
     
    i don't know if this will work for you, but when i need to filter ish
    before i before it goes to my DB, i do a replace command on the
    string Variable.
     
    Lets say you didn't want the word "Hello" entered into your DB,
    you wanted the word "Hi" instead.
     
    Dim X as string
     
    X = CuteEditor1.text
    X = X.Replace("Hello", "Hi")
     
    And from there, just send the string X to be saved in your DB.
     
     
    Hope that Helps,
     
    Dave

     
     
View as RSS news feed in XML