Quantcast
Channel: Adobe Community : Discussion List - LiveCycle Forms
Viewing all articles
Browse latest Browse all 1160

Using regexp

$
0
0

Hello everybody

 

In a textfield, I have got several lines with a carriage return. I would like to delete only the last carriage return of the last line. How can I do that with a regexp. In InDesign, the regexp is : search (?=\r)\r and replace with nothing.

 

But in LiveCycle

 

In the exit event:

 

var str = this.rawValue;

this.rawValue = str.replace(/ what here? /,"");

 

Many thanks


Viewing all articles
Browse latest Browse all 1160

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>