AI Zone Admin Forum Add your forum

NEWS: Chatbots.org survey on 3000 US and UK consumers shows it is time for chatbot integration in customer service!read more..

Backslash bug in code block
 
 

When I posted this code:
USER:hi
AI: You have successfully logged-in.
712 - /^(hello|hi<BACKSLASH>b|whassup|(good )?(morning|afternoon|evening))/i

Response time:3 milliseconds.

USER:hi
AI
You have successfully logged-in.
712 - /^(hello|hib|whassup|(good )?(morning|afternoon|evening))/i

Response time
:3 milliseconds

The backslash does not show up.

 

 
  [ # 1 ]

Hi Merlin, this actually works fine for me:

USER:hi
AI
You have successfully logged-in.
712 - /^(hello|hi<BACKSLASH>b|whassup|(good )?(morning|afternoon|evening))/i

Response time
:3 milliseconds

Can you try it again?

 

 

 
  [ # 2 ]
Arthur De Wolf - Jan 4, 2011:

Hi Merlin, this actually works fine for me:
Can you try it again?

USER:hi
AI
You have successfully logged-in.
712 - /^(hello|hib|whassup|(good )?(morning|afternoon|evening))/i

Response time
:3 milliseconds

Nope still not working where I have <BACKSLASH> should be “\”.

To do this in the text I had to do <BACKSLASH><BACKSLASH>.
If I preview in the editor after entering <BACKSLASH><BACKSLASH>, the next time it disappears.

A backslash b is end of word in a regular expression. - /b

 

 
  [ # 3 ]

Another test:

USER:hi
AI
You have successfully logged-in.
712 - /^(hello|hi\b|whassup|(good )?(morning|afternoon|evening))/i

Response time
:3 milliseconds
 

 
  [ # 4 ]

I see now what you mean. I had misunderstood your problem.

Backslashes seem to work if you don’t use the Preview button. When you hit Submit right away it will publish the backslashes, but each time you hit Preview it removes one.

I’ll report this as a bug to the makers of the forum software. Thank you for reporting this.

 

 
  [ # 5 ]

Ok Arthur, thanks for the follow-up.
If someone is going to share code it will be important that all of the characters are in tact.

Did you fix the

problem?

Evidently the same thing happens with -pattern- inside angle brackets.

 

 
  [ # 6 ]

The problem has not yet been resolved. I’ll await a response from the forum software company.

<pattern> will only work when you put it inside a code block:

<pattern
 

 
  [ # 7 ]

Sorry, I didn’t mean the backslash problem, I was testing the “pattern” problem.

Did you fix the

<PATTERN

problem?

But the “pattern” disappeared when I previewed it.

 

 
  login or register to react