Click here to Skip to main content
15,848,558 members
Home / Discussions / JavaScript
   

JavaScript

 
AnswerRe: Convert div into image in Java Script. Pin
Beginner Luck25-Jan-16 15:24
professionalBeginner Luck25-Jan-16 15:24 
QuestionHow to redirect the weburl to particular country when user types in Browser. Pin
pradeep yajamanam21-Jan-16 4:17
pradeep yajamanam21-Jan-16 4:17 
AnswerRe: How to redirect the weburl to particular country when user types in Browser. Pin
F-ES Sitecore21-Jan-16 4:52
professionalF-ES Sitecore21-Jan-16 4:52 
GeneralRe: How to redirect the weburl to particular country when user types in Browser. Pin
Richard Deeming21-Jan-16 4:57
mveRichard Deeming21-Jan-16 4:57 
AnswerRe: How to redirect the weburl to particular country when user types in Browser. Pin
Beginner Luck27-Jan-16 15:49
professionalBeginner Luck27-Jan-16 15:49 
GeneralRe: How to redirect the weburl to particular country when user types in Browser. Pin
Richard Deeming28-Jan-16 2:07
mveRichard Deeming28-Jan-16 2:07 
QuestionNeed help with script Pin
Member 1227186218-Jan-16 10:27
Member 1227186218-Jan-16 10:27 
AnswerRe: Need help with script Pin
Richard Deeming18-Jan-16 11:45
mveRichard Deeming18-Jan-16 11:45 
The regular expression you're using is looking to replace tabs. The sample input you've provided doesn't use tabs; it uses spaces.

If the columns will always be separated by at least two spaces, use:
JavaScript
/^|$|\t|\s{2,}/gm

If the columns will always be separated by at least one space, and will never contain a space, use:
JavaScript
/^|$|\t|\s+/gm


If you can't guarantee either one of those conditions, then there's no way to differentiate between a space within a column and a space between two columns.



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer


QuestionGetting User Name Pin
Member 1226951817-Jan-16 9:20
Member 1226951817-Jan-16 9:20 
AnswerRe: Getting User Name Pin
Wombaticus17-Jan-16 12:25
Wombaticus17-Jan-16 12:25 
GeneralRe: Getting User Name Pin
Member 1226951817-Jan-16 13:50
Member 1226951817-Jan-16 13:50 
GeneralRe: Getting User Name Pin
Wombaticus17-Jan-16 13:55
Wombaticus17-Jan-16 13:55 
GeneralRe: Getting User Name Pin
Member 1226951817-Jan-16 13:58
Member 1226951817-Jan-16 13:58 
GeneralRe: Getting User Name Pin
Wombaticus17-Jan-16 14:05
Wombaticus17-Jan-16 14:05 
GeneralRe: Getting User Name Pin
Wombaticus17-Jan-16 14:10
Wombaticus17-Jan-16 14:10 
GeneralRe: Getting User Name Pin
Member 1226951817-Jan-16 14:13
Member 1226951817-Jan-16 14:13 
SuggestionRe: Getting User Name Pin
Richard Deeming18-Jan-16 2:39
mveRichard Deeming18-Jan-16 2:39 
QuestionHow to change MapTypeControl info text Change map style to our own text in google.maps.MapTypeControlStyle.DROPDOWN_MENU Pin
ven75313-Jan-16 7:36
ven75313-Jan-16 7:36 
QuestionArray Question Pin
Mindlesscandi10-Jan-16 17:17
Mindlesscandi10-Jan-16 17:17 
AnswerRe: Array Question Pin
Richard MacCutchan10-Jan-16 22:03
mveRichard MacCutchan10-Jan-16 22:03 
AnswerRe: Array Question Pin
Nathan Minier11-Jan-16 3:13
professionalNathan Minier11-Jan-16 3:13 
QuestionStatic Clock Pin
Mindlesscandi10-Jan-16 17:00
Mindlesscandi10-Jan-16 17:00 
AnswerRe: Static Clock Pin
Richard MacCutchan10-Jan-16 22:02
mveRichard MacCutchan10-Jan-16 22:02 
QuestionDisplay web page on mobile as overview with zoom-in on detail Pin
Member 122502747-Jan-16 6:49
Member 122502747-Jan-16 6:49 
AnswerRe: Display web page on mobile as overview with zoom-in on detail Pin
Nathan Minier8-Jan-16 3:16
professionalNathan Minier8-Jan-16 3:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.